Enum Class LOFType
- All Implemented Interfaces:
Serializable,Comparable<LOFType>,Constable,LOF
- Author:
- Luc Maisonobe, Maxime Journot, Vincent Cucchietti
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionConstant for East-North-Up frame.Constant for Equinoctial Coordinate System (X axis aligned with ascending node, Z axis aligned with orbital momentum).Constant for Local Vertical, Local Horizontal frame (X axis aligned with position, Z axis aligned with orbital momentum).Constant for Local Vertical, Local Horizontal frame as defined by CCSDS (Z axis aligned with opposite of position, Y axis aligned with opposite of orbital momentum).Constant for Local Vertical, Local Horizontal frame as defined by CCSDS considered inertial (Z axis aligned with opposite of position, Y axis aligned with opposite of orbital momentum).Constant for Local Vertical, Local Horizontal frame considered inertial (X axis aligned with position, Z axis aligned with orbital momentum).Constant for North-East-Down frame.Constant for Transverse Velocity Normal coordinate system (Y axis aligned with velocity, Z axis aligned with orbital momentum).Constant for Transverse Velocity Normal coordinate system considered inertial (Y axis aligned with velocity, Z axis aligned with orbital momentum).Constant for QSW frame (X axis aligned with position, Z axis aligned with orbital momentum).Constant for QSW frame considered inertial (X axis aligned with position, Z axis aligned with orbital momentum).Constant for TNW frame (X axis aligned with velocity, Z axis aligned with orbital momentum).Constant for TNW frame considered inertial (X axis aligned with velocity, Z axis aligned with orbital momentum).Constant for Velocity - Normal - Co-normal frame (X axis aligned with velocity, Y axis aligned with orbital momentum).Constant for Velocity - Normal - Co-normal frame considered inertial (X axis aligned with velocity, Y axis aligned with orbital momentum).Constant for Vehicle Velocity, Local Horizontal frame (Z axis aligned with opposite of position, Y axis aligned with opposite of orbital momentum).Constant for Vehicle Velocity, Local Horizontal frame considered inertial (Z axis aligned with opposite of position, Y axis aligned with opposite of orbital momentum). -
Method Summary
Modifier and TypeMethodDescriptiongetName()Get name of the local orbital frame.<T extends CalculusFieldElement<T>>
FieldRotation<T> rotationFromInertial(Field<T> field, FieldAbsoluteDate<T> date, FieldPVCoordinates<T> pv) Get the rotation from inertial frame to local orbital frame.abstract <T extends CalculusFieldElement<T>>
FieldRotation<T> rotationFromInertial(Field<T> field, FieldPVCoordinates<T> pv) Get the rotation from inertial frame to local orbital frame.rotationFromInertial(AbsoluteDate date, PVCoordinates pv) Get the rotation from inertial frame to local orbital frame.abstract RotationGet the rotation from inertial frame to local orbital frame.<T extends CalculusFieldElement<T>>
FieldRotation<T> rotationFromLOF(Field<T> field, LOFType fromLOF, FieldPVCoordinates<T> pv) Get the rotation from inputlocal orbital frameto the instance.rotationFromLOF(LOFType fromLOF, PVCoordinates pv) Get the rotation from inputlocal orbital frameto the instance.<T extends CalculusFieldElement<T>>
FieldRotation<T> rotationToInertial(Field<T> field, FieldPVCoordinates<T> pv) Get the rotation from local orbital frame to inertial frame.Get the rotation from local orbital frame to inertial frame.abstract OrbitRelativeFrameConvert current local orbital frame to CCSDS equivalent orbit relative frame when possible, null otherwise.static LOFTypeReturns the enum constant of this class with the specified name.static LOFType[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface org.orekit.frames.LOF
isQuasiInertial, rotationFromLOF, rotationFromLOF, rotationToInertial, rotationToInertial, transformFromInertial, transformFromInertial, transformFromLOF, transformFromLOF, transformToInertial, transformToInertial
-
Enum Constant Details
-
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
VNCandNTWframes:- XTNW = XVNC = YNTW
- YTNW = -ZVNC = -XNTW
- ZTNW = YVNC = ZNTW
- See Also:
-
TNW_INERTIAL
Constant for TNW frame considered inertial (X axis aligned with velocity, Z axis aligned with orbital momentum).The axes of this frame are parallel to the axes of the
VNCandNTWframes:- XTNW = XVNC = YNTW
- YTNW = -ZVNC = -XNTW
- ZTNW = YVNC = ZNTW
- See Also:
-
QSW
Constant for QSW frame (X axis aligned with position, Z axis aligned with orbital momentum).This frame is also known as the
LVLHframe, both constants are equivalent.The axes of these frames are parallel to the axes of the
VVLHframe:- XQSW/LVLH = -ZVVLH
- YQSW/LVLH = XVVLH
- ZQSW/LVLH = -YVVLH
- See Also:
-
QSW_INERTIAL
Constant for QSW frame considered inertial (X axis aligned with position, Z axis aligned with orbital momentum).This frame is also known as the
LVLHframe, both constants are equivalent.The axes of these frames are parallel to the axes of the
VVLHframe:- XQSW/LVLH = -ZVVLH
- YQSW/LVLH = XVVLH
- ZQSW/LVLH = -YVVLH
- See Also:
-
LVLH
Constant for Local Vertical, Local Horizontal frame (X axis aligned with position, Z axis aligned with orbital momentum).BEWARE! Depending on the background (software used, textbook, community), different incompatible definitions for LVLH are used. This one is consistent with Vallado's book and with AGI's STK. However CCSDS standard, Wertz, and a.i. solutions' FreeFlyer use another definition (see
LVLH_CCSDS).This frame is also known as the
QSWframe, both constants are equivalent.The axes of these frames are parallel to the axes of the
LVLH_CCSDSframe:- XLVLH/QSW = -ZLVLH_CCSDS
- YLVLH/QSW = XLVLH_CCSDS
- ZLVLH/QSW = -YLVLH_CCSDS
- See Also:
-
LVLH_INERTIAL
Constant for Local Vertical, Local Horizontal frame considered inertial (X axis aligned with position, Z axis aligned with orbital momentum).BEWARE! Depending on the background (software used, textbook, community), different incompatible definitions for LVLH are used. This one is consistent with Vallado's book and with AGI's STK. However CCSDS standard, Wertz, and a.i. solutions' FreeFlyer use another definition (see
LVLH_CCSDS).This frame is also known as the
QSWframe, both constants are equivalent.The axes of these frames are parallel to the axes of the
LVLH_CCSDSframe:- XLVLH/QSW = -ZLVLH_CCSDS
- YLVLH/QSW = XLVLH_CCSDS
- ZLVLH/QSW = -YLVLH_CCSDS
- See Also:
-
LVLH_CCSDS
Constant for Local Vertical, Local Horizontal frame as defined by CCSDS (Z axis aligned with opposite of position, Y axis aligned with opposite of orbital momentum).BEWARE! Depending on the background (software used, textbook, community), different incompatible definitions for LVLH are used. This one is consistent with CCSDS standard, Wertz, and a.i. solutions' FreeFlyer. However Vallado's book and with AGI's STK use another definition (see
LVLH).The axes of this frame are parallel to the axes of both the
QSWandLVLHframes:- XLVLH_CCSDS/VVLH = YQSW/LVLH
- YLVLH_CCSDS/VVLH = -ZQSW/LVLH
- ZLVLH_CCSDS/VVLH = -XQSW/LVLH
- Since:
- 11.0
- See Also:
-
LVLH_CCSDS_INERTIAL
Constant for Local Vertical, Local Horizontal frame as defined by CCSDS considered inertial (Z axis aligned with opposite of position, Y axis aligned with opposite of orbital momentum).BEWARE! Depending on the background (software used, textbook, community), different incompatible definitions for LVLH are used. This one is consistent with CCSDS standard, Wertz, and a.i. solutions' FreeFlyer. However Vallado's book and with AGI's STK use another definition (see
LVLH).The axes of this frame are parallel to the axes of both the
QSWandLVLHframes:- XLVLH_CCSDS/VVLH = YQSW/LVLH
- YLVLH_CCSDS/VVLH = -ZQSW/LVLH
- ZLVLH_CCSDS/VVLH = -XQSW/LVLH
- Since:
- 11.0
- See Also:
-
VVLH
Constant for Vehicle Velocity, Local Horizontal frame (Z axis aligned with opposite of position, Y axis aligned with opposite of orbital momentum).This is another name for
LVLH_CCSDS, kept here for compatibility with STK.Beware that the name is misleading: in the general case (i.e. not perfectly circular), none of the axes is perfectly aligned with velocity! The preferred name for this should be
LVLH_CCSDS.The axes of this frame are parallel to the axes of both the
QSWandLVLHframes:- XLVLH_CCSDS/VVLH = YQSW/LVLH
- YLVLH_CCSDS/VVLH = -ZQSW/LVLH
- ZLVLH_CCSDS/VVLH = -XQSW/LVLH
- See Also:
-
VVLH_INERTIAL
Constant for Vehicle Velocity, Local Horizontal frame considered inertial (Z axis aligned with opposite of position, Y axis aligned with opposite of orbital momentum).This is another name for
LVLH_CCSDS, kept here for compatibility with STK.Beware that the name is misleading: in the general case (i.e. not perfectly circular), none of the axes is perfectly aligned with velocity! The preferred name for this should be
LVLH_CCSDS.The axes of this frame are parallel to the axes of both the
QSWandLVLHframes:- XLVLH_CCSDS/VVLH = YQSW/LVLH
- YLVLH_CCSDS/VVLH = -ZQSW/LVLH
- ZLVLH_CCSDS/VVLH = -XQSW/LVLH
- See Also:
-
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
TNWandNTWframes:- XVNC = XTNW = YNTW
- YVNC = ZTNW = ZNTW
- ZVNC = -YTNW = XNTW
- See Also:
-
VNC_INERTIAL
Constant for Velocity - Normal - Co-normal frame considered inertial (X axis aligned with velocity, Y axis aligned with orbital momentum).The axes of this frame are parallel to the axes of the
TNWandNTWframes:- XVNC = XTNW = YNTW
- YVNC = ZTNW = ZNTW
- ZVNC = -YTNW = XNTW
- See Also:
-
EQW
Constant for Equinoctial Coordinate System (X axis aligned with ascending node, Z axis aligned with orbital momentum).- Since:
- 11.0
-
NTW
Constant for Transverse Velocity Normal coordinate system (Y axis aligned with velocity, Z axis aligned with orbital momentum).The axes of this frame are parallel to the axes of the
TNWandVNCframes:- XNTW = -YTNW = ZVNC
- YNTW = XTNW = XVNC
- ZNTW = ZTNW = YVNC
- Since:
- 11.0
- See Also:
-
NTW_INERTIAL
Constant for Transverse Velocity Normal coordinate system considered inertial (Y axis aligned with velocity, Z axis aligned with orbital momentum).The axes of this frame are parallel to the axes of the
TNWandVNCframes:- XNTW = -YTNW = ZVNC
- YNTW = XTNW = XVNC
- ZNTW = ZTNW = YVNC
- Since:
- 11.0
- See Also:
-
ENU
Constant for East-North-Up frame. (Z aligned with position, North Pole in the (+Y, ±Z) half-plane)- Since:
- 13.0
- See Also:
-
NED
Constant for North-East-Down frame. (Z aligned with opposite of position, North Pole in the (+X, ±Z) half-plane)- Since:
- 13.0
- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getName
Get name of the local orbital frame. -
rotationFromLOF
Get the rotation from inputlocal orbital frameto the instance.This rotation does not include any time derivatives. If first time derivatives (i.e. rotation rate) is needed as well, the full
LOF.transformFromLOF(LOF, AbsoluteDate, PVCoordinates)method must be called and the complete rotation transform must be extracted from it.- Parameters:
fromLOF- input local orbital framepv- position-velocity of the spacecraft in some inertial frame- Returns:
- rotation from input local orbital frame to the instance
-
rotationFromLOF
public <T extends CalculusFieldElement<T>> FieldRotation<T> rotationFromLOF(Field<T> field, LOFType fromLOF, FieldPVCoordinates<T> pv) Get the rotation from inputlocal orbital frameto the instance.This rotation does not include any time derivatives. If first time derivatives (i.e. rotation rate) is needed as well, the full
LOF.transformFromLOF(LOF, FieldAbsoluteDate, FieldPVCoordinates)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 belongfromLOF- input local orbital framepv- position-velocity of the spacecraft in some inertial frame- Returns:
- rotation from input local orbital frame to the instance
-
rotationFromInertial
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
It is unnecessary to use this method when dealing withtransformFromInertialmethod must be called and the complete rotation transform must be extracted from it.LOFType, userotationFromInertial(PVCoordinates)instead.- Specified by:
rotationFromInertialin interfaceLOF- Parameters:
date- date of the rotationpv- position-velocity of the spacecraft in some inertial frame- Returns:
- rotation from inertial frame to local orbital frame
-
rotationFromInertial
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
LOF.transformFromInertial(AbsoluteDate, PVCoordinates)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
-
rotationToInertial
Get the rotation from local orbital frame to inertial frame.This rotation does not include any time derivatives. If first time derivatives (i.e. rotation rate) is needed as well, the full
LOF.transformToInertial(AbsoluteDate, PVCoordinates)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 local orbital frame to inertial frame
-
rotationFromInertial
public <T extends CalculusFieldElement<T>> FieldRotation<T> rotationFromInertial(Field<T> field, FieldAbsoluteDate<T> date, 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
It is unnecessary to use this method when dealing withLOF.transformFromInertial(FieldAbsoluteDate, FieldPVCoordinates)method must be called and the complete rotation transform must be extracted from it.LOFType, userotationFromInertial(Field, FieldPVCoordinates)instead.- Specified by:
rotationFromInertialin interfaceLOF- Type Parameters:
T- type of the field elements- Parameters:
field- field to which the elements belongdate- date of the rotationpv- position-velocity of the spacecraft in some inertial frame- Returns:
- rotation from inertial frame to local orbital frame
-
rotationFromInertial
public abstract <T extends CalculusFieldElement<T>> FieldRotation<T> rotationFromInertial(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
LOF.transformFromInertial(FieldAbsoluteDate, FieldPVCoordinates)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 belongpv- position-velocity of the spacecraft in some inertial frame- Returns:
- rotation from inertial frame to local orbital frame
-
rotationToInertial
public <T extends CalculusFieldElement<T>> FieldRotation<T> rotationToInertial(Field<T> field, FieldPVCoordinates<T> pv) Get the rotation from local orbital frame to inertial frame.This rotation does not include any time derivatives. If first time derivatives (i.e. rotation rate) is needed as well, the full
LOF.transformToInertial(FieldAbsoluteDate, FieldPVCoordinates)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 belongpv- position-velocity of the spacecraft in some inertial frame- Returns:
- rotation from local orbital frame to inertial frame
-
toOrbitRelativeFrame
Convert current local orbital frame to CCSDS equivalent orbit relative frame when possible, null otherwise.- Returns:
- CCSDS equivalent orbit relative frame when possible, null otherwise
- See Also:
-