Enum LOFType

    • Enum Constant Detail

      • TNW

        public static final LOFType TNW
        Constant for TNW frame (X axis aligned with velocity, Z axis aligned with orbital momentum).

        The axes of this frame are parallel to the axes of the VNC frame:

        • XTNW = XVNC
        • YTNW = -ZVNC
        • ZTNW = YVNC
        See Also:
        VNC
      • QSW

        public static final LOFType QSW
        Constant for QSW frame (X axis aligned with position, Z axis aligned with orbital momentum).

        This frame is also known as the LVLH frame, both constants are equivalent.

        The axes of these frames are parallel to the axes of the VVLH frame:

        • XQSW/LVLH = -ZVVLH
        • YQSW/LVLH = XVVLH
        • ZQSW/LVLH = -YVVLH
        See Also:
        LVLH, VVLH
      • LVLH

        public static final LOFType LVLH
        Constant for Local Vertical, Local Horizontal frame (X axis aligned with position, Z axis aligned with orbital momentum).

        This frame is also known as the QSW frame, both constants are equivalent.

        The axes of these frames are parallel to the axes of the VVLH frame:

        • XLVLH/QSW = -ZVVLH
        • YLVLH/QSW = XVVLH
        • ZLVLH/QSW = -YVVLH
        See Also:
        QSW, VVLH
      • VVLH

        public static final LOFType VVLH
        Constant for Vehicle Velocity, Local Horizontal frame (Z axis aligned with opposite of position, Y axis aligned with opposite of orbital momentum).

        The axes of this frame are parallel to the axes of both the QSW and LVLH frames:

        • XVVLH = YQSW/LVLH
        • YVVLH = -ZQSW/LVLH
        • ZVVLH = -XQSW/LVLH
        See Also:
        QSW, LVLH
      • VNC

        public static final LOFType VNC
        Constant for Velocity - Normal - Co-normal frame (X axis aligned with velocity, Y axis aligned with orbital momentum).

        The axes of this frame are parallel to the axes of the TNW frame:

        • XVNC = XTNW
        • YVNC = ZTNW
        • ZVNC = -YTNW
        See Also:
        TNW
    • Method Detail

      • values

        public static LOFType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (LOFType c : LOFType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static LOFType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • transformFromInertial

        public Transform transformFromInertial​(AbsoluteDate date,
                                               PVCoordinates pv)
        Get the transform from an inertial frame defining position-velocity and the local orbital frame.
        Parameters:
        date - current date
        pv - position-velocity of the spacecraft in some inertial frame
        Returns:
        transform from the frame where position-velocity are defined to local orbital frame
      • transformFromInertial

        public <T extends org.hipparchus.RealFieldElement<T>> FieldTransform<T> transformFromInertial​(FieldAbsoluteDate<T> date,
                                                                                                      FieldPVCoordinates<T> pv)
        Get the transform from an inertial frame defining position-velocity and the local orbital frame.
        Type Parameters:
        T - type of the fiels elements
        Parameters:
        date - current date
        pv - position-velocity of the spacecraft in some inertial frame
        Returns:
        transform from the frame where position-velocity are defined to local orbital frame
        Since:
        9.0
      • rotationFromInertial

        public abstract org.hipparchus.geometry.euclidean.threed.Rotation rotationFromInertial​(PVCoordinates pv)
        Get the rotation from inertial frame to local orbital frame.

        This rotation does not include any time derivatives. If first time derivatives (i.e. rotation rate) is needed as well, the full transformFromInertial method must be called and the complete rotation transform must be extracted from it.

        Parameters:
        pv - position-velocity of the spacecraft in some inertial frame
        Returns:
        rotation from inertial frame to local orbital frame
      • rotationFromInertial

        public abstract <T extends org.hipparchus.RealFieldElement<T>> org.hipparchus.geometry.euclidean.threed.FieldRotation<T> rotationFromInertial​(org.hipparchus.Field<T> field,
                                                                                                                                                      FieldPVCoordinates<T> pv)
        Get the rotation from inertial frame to local orbital frame.

        This rotation does not include any time derivatives. If first time derivatives (i.e. rotation rate) is needed as well, the full transformFromInertial method must be called and the complete rotation transform must be extracted from it.

        Type Parameters:
        T - type of the field elements
        Parameters:
        field - field to which the elements belong
        pv - position-velocity of the spacecraft in some inertial frame
        Returns:
        rotation from inertial frame to local orbital frame
        Since:
        9.0