Package nz.org.riskscape.engine.geo
Enum Class HalfPlane
- All Implemented Interfaces:
Serializable
,Comparable<HalfPlane>
,Constable
The 'sides' of each axis. A pair of sides that share an axis form the 2d plane, a pair on different axis form a quadrant
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionflip()
getAxis()
The axis that bisects the 2d plane to form our sideboolean
Is this side the positive or negative one, e.g.static HalfPlane
Returns the enum constant of this class with the specified name.static HalfPlane[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TOP
-
RIGHT
-
BOTTOM
-
LEFT
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
flip
- Returns:
- our opposite plane
-
getAxis
The axis that bisects the 2d plane to form our side
-
isPositive
public boolean isPositive()Is this side the positive or negative one, e.g. coordinates lying in the positive side are all greater than those in the negative side
-