Serializable
, Comparable<PolynomialParser.Unit>
public static enum PolynomialParser.Unit extends Enum<PolynomialParser.Unit>
Enum Constant | Description |
---|---|
ARC_SECONDS |
Arc-seconds angles.
|
DEGREES |
Degrees angles.
|
MICRO_ARC_SECONDS |
Micro arc-seconds angles.
|
MILLI_ARC_SECONDS |
Milli arc-seconds angles.
|
NO_UNITS |
No units.
|
RADIANS |
Radians angles.
|
Modifier and Type | Method | Description |
---|---|---|
double |
toSI(double value) |
Convert value from instance unit to corresponding SI unit.
|
static PolynomialParser.Unit |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static PolynomialParser.Unit[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PolynomialParser.Unit RADIANS
public static final PolynomialParser.Unit DEGREES
public static final PolynomialParser.Unit ARC_SECONDS
public static final PolynomialParser.Unit MILLI_ARC_SECONDS
public static final PolynomialParser.Unit MICRO_ARC_SECONDS
public static final PolynomialParser.Unit NO_UNITS
public static PolynomialParser.Unit[] values()
for (PolynomialParser.Unit c : PolynomialParser.Unit.values()) System.out.println(c);
public static PolynomialParser.Unit 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 double toSI(double value)
value
- value in instance unitCopyright © 2002-2018 CS Systèmes d'information. All rights reserved.