public enum SphericalElement extends Enum<SphericalElement> implements Enumeration
Spherical
coordinates.Enum Constant and Description |
---|
CLOCK
The angular coordinate lying in the xy-plane measured from the positive x-axis and toward the positive y-axis.
|
CONE
The angular coordinate measured from the positive z-axis and toward the negative z-axis.
|
MAGNITUDE
The linear coordinate measured from the origin.
|
Modifier and Type | Method and Description |
---|---|
static SphericalElement |
getDefault()
Get the enum constant that is considered to be the default.
|
static SphericalElement |
getFromValue(int value)
Get the enum constant that is associated with the given numeric value.
|
int |
getValue()
Get the numeric value associated with this enum constant.
|
static SphericalElement |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SphericalElement[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SphericalElement CLOCK
public static final SphericalElement CONE
public static final SphericalElement MAGNITUDE
public static SphericalElement[] values()
for (SphericalElement c : SphericalElement.values()) System.out.println(c);
public static SphericalElement 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 getValue()
getValue
in interface Enumeration
@Nonnull public static SphericalElement getFromValue(int value)
value
- a numeric value.@Nonnull public static SphericalElement getDefault()