This commit is contained in:
SiboVG 2022-09-11 15:28:34 +02:00
parent 3ae75408f7
commit 12fb49b72f

View File

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