Class InertiaAxis


  • public class InertiaAxis
    extends Object
    Container for inertial axis.

    Instances of this class are immutable

    Since:
    12.0
    Author:
    Luc Maisonobe
    • Constructor Detail

      • InertiaAxis

        public InertiaAxis​(double i,
                           Vector3D a)
        Simple constructor to pair a moment of inertia with its associated axis.
        Parameters:
        i - moment of inertia
        a - inertia axis
    • Method Detail

      • negate

        public InertiaAxis negate()
        Reverse the inertia axis.
        Returns:
        new container with reversed axis
      • getI

        public double getI()
        Get the moment of inertia.
        Returns:
        moment of inertia
      • getA

        public Vector3D getA()
        Get the inertia axis.
        Returns:
        inertia axis