Class MomentsOfInertia
java.lang.Object
org.biojava.nbio.structure.geometry.MomentsOfInertia
The moment of inertia, otherwise known as the angular mass or rotational
inertia, of a rigid body determines the torque needed for a desired angular
acceleration about a rotational axis. It depends on the body's mass
distribution and the axis chosen, with larger moments requiring more torque
to change the body's rotation.
More in https://en.wikipedia.org/wiki/Moment_of_inertia.
- Author:
- Peter Rose, Aleix Lafita
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPoint
(javax.vecmath.Point3d point, double mass) double
getAsymmetryParameter
(double threshold) javax.vecmath.Point3d
double[]
The effective value of this distance for a certain body is known as its radius of / gyration with respect to the given axis.double[][]
javax.vecmath.Matrix3d
The orientation Matrix is a 3x3 Matrix with a column for each principal axis.javax.vecmath.Vector3d[]
The principal axes of intertiadouble[]
double
getSymmetryClass
(double threshold) double
-
Constructor Details
-
MomentsOfInertia
public MomentsOfInertia()Creates a new empty instance of MomentsOfInertia
-
-
Method Details
-
addPoint
-
getCenterOfMass
-
getPrincipalMomentsOfInertia
-
getPrincipalAxes
The principal axes of intertia- Returns:
-
getOrientationMatrix
The orientation Matrix is a 3x3 Matrix with a column for each principal axis. It represents the orientation (rotation) of the principal axes with respect to the axes of the coordinate system (unit vectors [1,0,0], [0,1,0] and [0,0,1]).The orientation matrix indicates the rotation to bring the coordinate axes to the principal axes, in this direction.
- Returns:
- the orientation Matrix as a Matrix3d object
-
getElipsisRadii
The effective value of this distance for a certain body is known as its radius of / gyration with respect to the given axis. The radius of gyration corresponding to Ijj / is defined as / http://www.eng.auburn.edu/~marghitu/MECH2110/C_4.pdf / radius of gyration k(j) = sqrt(I(j)/m) -
getRadiusOfGyration
-
getSymmetryClass
-
symmetryCoefficient
-
getAsymmetryParameter
-
getInertiaTensor
-