|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vizzini.math.MomentOfInertiaCalculator
public class MomentOfInertiaCalculator
Provides a calculator of moment of inertia values for three-dimensional physical objects. Formulas taken from Wikipedia.
Method Summary | |
---|---|
double[] |
computeForBoxSolid(double mass,
double width,
double height,
double depth)
Return the moment of inertia for a solid box of the given dimensions and mass. |
double[] |
computeForCylinderSolid(double mass,
double radius,
double height)
Return the moment of inertia for a solid cylinder of the given radius, height and mass. |
double[] |
computeForCylinderThickWalled(double mass,
double radius0,
double radius1,
double height)
Return the moment of inertia for a thick walled cylinder of the given radius, height and mass. |
double[] |
computeForCylinderThinWalled(double mass,
double radius)
Return the moment of inertia for a thin walled cylinder of the given radius and mass. |
double[] |
computeForSphereHollow(double mass,
double radius)
Return the moment of inertia for a hollow sphere of the given radius and mass. |
double[] |
computeForSphereSolid(double mass,
double radius)
Return the moment of inertia for a solid sphere of the given radius and mass. |
static MomentOfInertiaCalculator |
getInstance()
Return the singleton instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static MomentOfInertiaCalculator getInstance()
public double[] computeForBoxSolid(double mass, double width, double height, double depth)
mass
- Mass.width
- Width.height
- Height.depth
- Depth.public double[] computeForCylinderSolid(double mass, double radius, double height)
mass
- Mass.radius
- Radius.height
- Height.public double[] computeForCylinderThickWalled(double mass, double radius0, double radius1, double height)
mass
- Mass.radius0
- Inner radius.radius1
- Outer radius.height
- Height.public double[] computeForCylinderThinWalled(double mass, double radius)
mass
- Mass.radius
- Radius.public double[] computeForSphereHollow(double mass, double radius)
mass
- Mass.radius
- Radius.public double[] computeForSphereSolid(double mass, double radius)
mass
- Mass.radius
- Radius.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |