Package org.orekit.attitudes
Class Inertia
- java.lang.Object
-
- org.orekit.attitudes.Inertia
-
public class Inertia extends Object
Container for inertia of a 3D object.Instances of this class are immutable
- Since:
- 12.0
- Author:
- Luc Maisonobe
-
-
Constructor Summary
Constructors Constructor Description Inertia(InertiaAxis iA1, InertiaAxis iA2, InertiaAxis iA3)
Simple constructor from principal axes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InertiaAxis
getInertiaAxis1()
Get inertia along first axis.InertiaAxis
getInertiaAxis2()
Get inertia along second axis.InertiaAxis
getInertiaAxis3()
Get inertia along third axis.Vector3D
momentum(Vector3D rotationRate)
Compute angular momentum.Inertia
swap12()
Swap axes 1 and 2.Inertia
swap13()
Swap axes 1 and 3.Inertia
swap23()
Swap axes 2 and 3.
-
-
-
Constructor Detail
-
Inertia
public Inertia(InertiaAxis iA1, InertiaAxis iA2, InertiaAxis iA3)
Simple constructor from principal axes.- Parameters:
iA1
- inertia along first axisiA2
- inertia along second axisiA3
- inertia along third axis
-
-
Method Detail
-
swap12
public Inertia swap12()
Swap axes 1 and 2.The instance is unchanged.
- Returns:
- inertia with swapped axes
-
swap13
public Inertia swap13()
Swap axes 1 and 3.The instance is unchanged.
- Returns:
- inertia with swapped axes
-
swap23
public Inertia swap23()
Swap axes 2 and 3.The instance is unchanged.
- Returns:
- inertia with swapped axes
-
getInertiaAxis1
public InertiaAxis getInertiaAxis1()
Get inertia along first axis.- Returns:
- inertia along first axis
-
getInertiaAxis2
public InertiaAxis getInertiaAxis2()
Get inertia along second axis.- Returns:
- inertia along second axis
-
getInertiaAxis3
public InertiaAxis getInertiaAxis3()
Get inertia along third axis.- Returns:
- inertia along third axis
-
-