Cleanup
This commit is contained in:
parent
3ae75408f7
commit
12fb49b72f
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user