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:
JoePfeiffer 2023-12-13 08:42:05 -07:00
parent 3e1341271c
commit 9f13635357

View File

@ -328,8 +328,15 @@ public class BodyTube extends SymmetricComponent implements BoxBounded, MotorMou
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.