public enum EquatorialCoordinate extends Enum<EquatorialCoordinate> implements OrbitalCoordinate
Enum Constant and Description |
---|
ECCENTRIC_ANOMALY
Eccentric anomaly.
|
ECCENTRICITY
Eccentricity.
|
I_X
First component of inclination vector.
|
I_Y
Second component of inclination vector.
|
MEAN_ANOMALY
Mean anomaly.
|
PERIAPSIS_LONGITUDE
Longitude of the periapsis.
|
SEMI_MAJOR_AXIS
Semi-major axis.
|
TRUE_ANOMALY
True anomaly.
|
Modifier and Type | Method and Description |
---|---|
OrbitType |
getOrbitType()
Gets the orbit type to which this orbital coordinate is related.
|
int |
getStateVectorIndex()
Gets the index of the coordinate in the state vector array.
|
static EquatorialCoordinate |
valueOf(int stateVectorIndex,
PositionAngle positionAngle)
Gets the coordinate type associated with a given state vector index.
|
static EquatorialCoordinate |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EquatorialCoordinate[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
checkStateVectorIndex, convertTo
public static final EquatorialCoordinate SEMI_MAJOR_AXIS
public static final EquatorialCoordinate ECCENTRICITY
public static final EquatorialCoordinate PERIAPSIS_LONGITUDE
public static final EquatorialCoordinate I_X
public static final EquatorialCoordinate I_Y
public static final EquatorialCoordinate TRUE_ANOMALY
public static final EquatorialCoordinate MEAN_ANOMALY
public static final EquatorialCoordinate ECCENTRIC_ANOMALY
public static EquatorialCoordinate[] values()
for (EquatorialCoordinate c : EquatorialCoordinate.values()) System.out.println(c);
public static EquatorialCoordinate valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getStateVectorIndex()
getStateVectorIndex
in interface OrbitalCoordinate
public OrbitType getOrbitType()
getOrbitType
in interface OrbitalCoordinate
public static EquatorialCoordinate valueOf(int stateVectorIndex, PositionAngle positionAngle)
stateVectorIndex
- the state vector indexpositionAngle
- the position angle type (only used for the anomaly)IllegalArgumentException
- if the provided state vector index is not between 0 and 5 (included)Copyright © 2023 CNES. All rights reserved.