Enum Vector3D.VectorType
- java.lang.Object
-
- java.lang.Enum<Vector3D.VectorType>
-
- org.openstreetmap.josm.gui.util.imagery.Vector3D.VectorType
-
- All Implemented Interfaces:
Serializable
,Comparable<Vector3D.VectorType>
- Enclosing class:
- Vector3D
public static enum Vector3D.VectorType extends Enum<Vector3D.VectorType>
This determines how arguments are used inVector3D(VectorType, double, double, double)
.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
VectorType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Vector3D.VectorType
valueOf(String name)
Returns the enum constant of this type with the specified name.static Vector3D.VectorType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
XYZ
public static final Vector3D.VectorType XYZ
Standard cartesian coordinates (x, y, z)
-
RPA
public static final Vector3D.VectorType RPA
Physics (radial distance, polar angle, azimuthal angle)
-
RAP
public static final Vector3D.VectorType RAP
Mathematics (radial distance, azimuthal angle, polar angle)
-
-
Constructor Detail
-
VectorType
private VectorType()
-
-
Method Detail
-
values
public static Vector3D.VectorType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Vector3D.VectorType c : Vector3D.VectorType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Vector3D.VectorType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-