Package de.xima.fc.common.geometry
Enum ECartesianAxis2D
- java.lang.Object
-
- java.lang.Enum<ECartesianAxis2D>
-
- de.xima.fc.common.geometry.ECartesianAxis2D
-
- All Implemented Interfaces:
Serializable
,Comparable<ECartesianAxis2D>
public enum ECartesianAxis2D extends Enum<ECartesianAxis2D>
An enumeration representing the two dimensions in a 2D cartesian coordinate system.- Since:
- 8.4.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ECartesianAxis2D
opposite()
Returns the opposite axis of this axis.static ECartesianAxis2D
valueOf(String name)
Returns the enum constant of this type with the specified name.static ECartesianAxis2D[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
X
public static final ECartesianAxis2D X
The X-axis, representing the horizontal dimension.
-
Y
public static final ECartesianAxis2D Y
The Y-axis, representing the vertical dimension.
-
-
Method Detail
-
values
public static ECartesianAxis2D[] 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 (ECartesianAxis2D c : ECartesianAxis2D.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ECartesianAxis2D 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
-
opposite
public ECartesianAxis2D opposite()
Returns the opposite axis of this axis. The opposite of X is Y and vice versa.- Returns:
- The opposite axis.
-
-