public enum QuadrantRotation extends Enum<QuadrantRotation>
Modifier and Type | Method and Description |
---|---|
int |
degrees() |
static QuadrantRotation |
forDegrees(int degrees)
Retrieve the constant corresponding to a given rotation angle.
|
double |
radians() |
static QuadrantRotation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static QuadrantRotation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final QuadrantRotation ROT_000
public static final QuadrantRotation ROT_090
public static final QuadrantRotation ROT_180
public static final QuadrantRotation ROT_270
public static QuadrantRotation[] values()
for (QuadrantRotation c : QuadrantRotation.values()) System.out.println(c);
public static QuadrantRotation valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int degrees()
public double radians()
public static QuadrantRotation forDegrees(int degrees)
degrees
- rotation angle, measured in degreesIllegalArgumentException
- if the given rotation angle is not a quadrant rotation, that is,
one of 0, 90, 180 or 270 degrees.Copyright © 2024 levigo holding gmbh. All rights reserved.