Package org.orekit.data
Enum Class PolynomialParser.Unit
- All Implemented Interfaces:
Serializable,Comparable<PolynomialParser.Unit>,Constable
- Enclosing class:
PolynomialParser
Unit for the coefficients.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionArc-seconds angles.Degrees angles.Micro arc-seconds angles.Milli arc-seconds angles.No units.Radians angles. -
Method Summary
Modifier and TypeMethodDescriptiondoubletoSI(double value) Convert value from instance unit to corresponding SI unit.static PolynomialParser.UnitReturns the enum constant of this class with the specified name.static PolynomialParser.Unit[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RADIANS
Radians angles. -
DEGREES
Degrees angles. -
ARC_SECONDS
Arc-seconds angles. -
MILLI_ARC_SECONDS
Milli arc-seconds angles. -
MICRO_ARC_SECONDS
Micro arc-seconds angles. -
NO_UNITS
No units.
-
-
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
-
toSI
public double toSI(double value) Convert value from instance unit to corresponding SI unit.- Parameters:
value- value in instance unit- Returns:
- value in SI unit
-