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; }