Moved calculation of all body tube properties into BodyTube instead of punting some to SymmetricComponent. This is both a little faster and will let me compare the results from the two in unit tests.
This commit is contained in:
parent
3e1341271c
commit
9f13635357
@ -328,8 +328,15 @@ public class BodyTube extends SymmetricComponent implements BoxBounded, MotorMou
|
|||||||
return (MathUtil.pow2(getInnerRadius()) + MathUtil.pow2(getOuterRadius())) / 2;
|
return (MathUtil.pow2(getInnerRadius()) + MathUtil.pow2(getOuterRadius())) / 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public double getComponentWetArea() {
|
||||||
|
return Math.PI * getOuterRadius() * 2 * getLength();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public double getComponentPlanformArea() {
|
||||||
|
return getOuterRadius() * 2 * getLength();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper function for cylinder volume.
|
* Helper function for cylinder volume.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user