public enum UnnormalizedAngleUnit extends java.lang.Enum<UnnormalizedAngleUnit>
UnnormalizedAngleUnit
represents angles in different units of measure and
provides utility methods to convert across units. UnnormalizedAngleUnit
does not
maintain angle information information internally, but only helps organize
and use angle measures that may be maintained separately across various contexts.
Angles can be distinguished along (at least) two axes:
Unnormalized angles can be handy when the angular quantity is not a physical angle but some related quantity such as an angular velocity or acceleration, where the quantity in question lacks the 360-degree cyclical equivalence of a physical angle.
AngleUnit
expresses normalized angles, while UnnormalizedAngleUnit
expresses unnormalized ones
Modifier and Type | Field and Description |
---|---|
byte |
bVal |
Modifier and Type | Method and Description |
---|---|
double |
fromDegrees(double degrees) |
float |
fromDegrees(float degrees) |
double |
fromRadians(double radians) |
float |
fromRadians(float radians) |
double |
fromUnit(UnnormalizedAngleUnit them,
double theirs) |
float |
fromUnit(UnnormalizedAngleUnit them,
float theirs) |
AngleUnit |
getNormalized() |
double |
toDegrees(double inOurUnits) |
float |
toDegrees(float inOurUnits) |
double |
toRadians(double inOurUnits) |
float |
toRadians(float inOurUnits) |
static UnnormalizedAngleUnit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static UnnormalizedAngleUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnnormalizedAngleUnit DEGREES
public static final UnnormalizedAngleUnit RADIANS
public static UnnormalizedAngleUnit[] values()
for (UnnormalizedAngleUnit c : UnnormalizedAngleUnit.values()) System.out.println(c);
public static UnnormalizedAngleUnit valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic double fromDegrees(double degrees)
public float fromDegrees(float degrees)
public double fromRadians(double radians)
public float fromRadians(float radians)
public double fromUnit(UnnormalizedAngleUnit them, double theirs)
public float fromUnit(UnnormalizedAngleUnit them, float theirs)
public double toDegrees(double inOurUnits)
public float toDegrees(float inOurUnits)
public double toRadians(double inOurUnits)
public float toRadians(float inOurUnits)
public AngleUnit getNormalized()