From 12fb49b72f8a9a8a50372e0ee7a10a10fe843535 Mon Sep 17 00:00:00 2001 From: SiboVG Date: Sun, 11 Sep 2022 15:28:34 +0200 Subject: [PATCH] Cleanup --- core/src/net/sf/openrocket/rocketcomponent/PodSet.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/net/sf/openrocket/rocketcomponent/PodSet.java b/core/src/net/sf/openrocket/rocketcomponent/PodSet.java index 3e350f862..18744d671 100644 --- a/core/src/net/sf/openrocket/rocketcomponent/PodSet.java +++ b/core/src/net/sf/openrocket/rocketcomponent/PodSet.java @@ -8,6 +8,7 @@ import net.sf.openrocket.rocketcomponent.position.RadiusMethod; import net.sf.openrocket.startup.Application; import net.sf.openrocket.util.BugException; import net.sf.openrocket.util.Coordinate; +import net.sf.openrocket.util.MathUtil; public class PodSet extends ComponentAssembly implements RingInstanceable { @@ -120,7 +121,7 @@ public class PodSet extends ComponentAssembly implements RingInstanceable { @Override public double getAxialOffset() { - double returnValue = Double.NaN; + double returnValue; if (this.isAfter()){ // remember the implicit (this instanceof Stage) @@ -129,7 +130,7 @@ public class PodSet extends ComponentAssembly implements RingInstanceable { returnValue = super.getAxialOffset(this.axialMethod); } - if (0.000001 > Math.abs(returnValue)) { + if (MathUtil.EPSILON > Math.abs(returnValue)) { returnValue = 0.0; }