public enum AngleUnit extends Enum<AngleUnit>
Enum Constant and Description |
---|
ARCSEC
Arcseconds.
|
DEGREE
Degrees.
|
MAS
Milliarcseconds.
|
MINUTE
Minutes.
|
RADIAN
Radians.
|
UAS
Microarcseconds.
|
Modifier and Type | Method and Description |
---|---|
String |
getFullName()
Returns the full-text name of this unit.
|
String |
getName()
Returns the canonical name of this unit.
|
static AngleUnit |
getNamedUnit(String name)
Returns the AngleUnit instance that corresponds to
a user-specified unit name.
|
double |
getValueInDegrees()
Returns the value of this unit in degrees.
|
String |
toString() |
static AngleUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AngleUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AngleUnit RADIAN
public static final AngleUnit DEGREE
public static final AngleUnit MINUTE
public static final AngleUnit ARCSEC
public static final AngleUnit MAS
public static final AngleUnit UAS
public static AngleUnit[] values()
for (AngleUnit c : AngleUnit.values()) System.out.println(c);
public static AngleUnit 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 getValueInDegrees()
public String getName()
public String getFullName()
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.