Fixed computation of Logitudinal Unit Inertia for tube like things.
This commit is contained in:
parent
fcd3220633
commit
b93926ec4b
@ -281,8 +281,8 @@ public class BodyTube extends SymmetricComponent implements MotorMount, Coaxial
|
||||
|
||||
@Override
|
||||
public double getLongitudinalUnitInertia() {
|
||||
// 1/12 * (3 * (r1^2 + r2^2) + h^2)
|
||||
return (3 * (MathUtil.pow2(getInnerRadius())) + MathUtil.pow2(getOuterRadius()) + MathUtil.pow2(getLength())) / 12;
|
||||
// 1/12 * (3 * (r2^2 + r1^2) + h^2)
|
||||
return (3 * (MathUtil.pow2(getOuterRadius()) + MathUtil.pow2(getInnerRadius())) + MathUtil.pow2(getLength())) / 12;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -211,8 +211,8 @@ public class LaunchLug extends ExternalComponent implements Coaxial {
|
||||
|
||||
@Override
|
||||
public double getLongitudinalUnitInertia() {
|
||||
// 1/12 * (3 * (r1^2 + r2^2) + h^2)
|
||||
return (3 * (MathUtil.pow2(getInnerRadius())) + MathUtil.pow2(getOuterRadius()) + MathUtil.pow2(getLength())) / 12;
|
||||
// 1/12 * (3 * (r2^2 + r1^2) + h^2)
|
||||
return (3 * (MathUtil.pow2(getOuterRadius()) + MathUtil.pow2(getInnerRadius())) + MathUtil.pow2(getLength())) / 12;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user