Package de.xima.fc.common.geometry
Enum EAxisPolarity
- java.lang.Object
-
- java.lang.Enum<EAxisPolarity>
-
- de.xima.fc.common.geometry.EAxisPolarity
-
- All Implemented Interfaces:
Serializable
,Comparable<EAxisPolarity>
public enum EAxisPolarity extends Enum<EAxisPolarity>
The polarity or direction of an axis in a coordinate system.- Since:
- 8.4.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EAxisPolarity
inverse()
Returns the opposite polarity of this axis polarity.int
signum()
The signum of this axis polarity, i.e.static EAxisPolarity
valueOf(String name)
Returns the enum constant of this type with the specified name.static EAxisPolarity[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEGATIVE
public static final EAxisPolarity NEGATIVE
The negative polarity or direction, going from positive to negative values.
-
POSITIVE
public static final EAxisPolarity POSITIVE
The positive polarity or direction, going from negative to positive values.
-
-
Method Detail
-
values
public static EAxisPolarity[] 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 (EAxisPolarity c : EAxisPolarity.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EAxisPolarity 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
-
inverse
public EAxisPolarity inverse()
Returns the opposite polarity of this axis polarity.- Returns:
- The opposite polarity of this axis polarity.
-
signum
public int signum()
- Returns:
- The signum of this axis polarity.
-
-