org.osm2world.core.target.common.rendering
Enum OrthoTilesUtil.CardinalDirection
Object
Enum<OrthoTilesUtil.CardinalDirection>
OrthoTilesUtil.CardinalDirection
- All Implemented Interfaces:
- Serializable, Comparable<OrthoTilesUtil.CardinalDirection>
- Enclosing class:
- OrthoTilesUtil
public static enum OrthoTilesUtil.CardinalDirection
- extends Enum<OrthoTilesUtil.CardinalDirection>
4 cardinal directions, can be used for camera placement
Enum Constant Summary |
E
|
N
|
S
|
W
|
Methods inherited from class Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class Object |
getClass, notify, notifyAll, wait, wait, wait |
N
public static final OrthoTilesUtil.CardinalDirection N
E
public static final OrthoTilesUtil.CardinalDirection E
S
public static final OrthoTilesUtil.CardinalDirection S
W
public static final OrthoTilesUtil.CardinalDirection W
values
public static OrthoTilesUtil.CardinalDirection[] 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 (OrthoTilesUtil.CardinalDirection c : OrthoTilesUtil.CardinalDirection.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static OrthoTilesUtil.CardinalDirection 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 name
NullPointerException
- if the argument is null
closestCardinal
public static OrthoTilesUtil.CardinalDirection closestCardinal(double angle)
- returns the closest cardinal direction for an angle
- Parameters:
angle
- angle to north direction in radians;
consistent with VectorXZ.angle()
isOppositeOf
public boolean isOppositeOf(OrthoTilesUtil.CardinalDirection other)