Enum AttitudeElementsType
- java.lang.Object
-
- java.lang.Enum<AttitudeElementsType>
-
- org.orekit.files.ccsds.ndm.adm.acm.AttitudeElementsType
-
- All Implemented Interfaces:
Serializable
,Comparable<AttitudeElementsType>
public enum AttitudeElementsType extends Enum<AttitudeElementsType>
Attitude element set type used in CCSDSAttitude Comprehensive Messages
.- Since:
- 12.0
- Author:
- Luc Maisonobe
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DCM
Direction cosine matrix.EULER_ANGLES
Euler angles.QUATERNION
Quaternion.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description List<Unit>
getUnits()
Get the elements units.abstract Rotation
toRotation(RotationOrder order, double[] elements)
Convert to rotation.String
toString()
static AttitudeElementsType
valueOf(String name)
Returns the enum constant of this type with the specified name.static AttitudeElementsType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
QUATERNION
public static final AttitudeElementsType QUATERNION
Quaternion.
-
EULER_ANGLES
public static final AttitudeElementsType EULER_ANGLES
Euler angles.
-
DCM
public static final AttitudeElementsType DCM
Direction cosine matrix.
-
-
Method Detail
-
values
public static AttitudeElementsType[] 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 (AttitudeElementsType c : AttitudeElementsType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AttitudeElementsType 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 nameNullPointerException
- if the argument is null
-
toRotation
public abstract Rotation toRotation(RotationOrder order, double[] elements)
Convert to rotation.- Parameters:
order
- rotation order for Euler angleselements
- elements values in SI units- Returns:
- rotation
-
toString
public String toString()
- Overrides:
toString
in classEnum<AttitudeElementsType>
-
-