public enum ModelRotation extends java.lang.Enum<ModelRotation> implements IModelTransform
Enum Constant and Description |
---|
X0_Y0 |
X0_Y180 |
X0_Y270 |
X0_Y90 |
X180_Y0 |
X180_Y180 |
X180_Y270 |
X180_Y90 |
X270_Y0 |
X270_Y180 |
X270_Y270 |
X270_Y90 |
X90_Y0 |
X90_Y180 |
X90_Y270 |
X90_Y90 |
Modifier and Type | Field and Description |
---|---|
private int |
combinedXY |
private static java.util.Map<java.lang.Integer,ModelRotation> |
MAP_ROTATIONS |
private Quaternion |
matrix |
private int |
quartersX |
private int |
quartersY |
Modifier and Type | Method and Description |
---|---|
private static int |
combineXY(int x,
int y) |
static ModelRotation |
getModelRotation(int x,
int y) |
TransformationMatrix |
getRotation() |
static ModelRotation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ModelRotation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
isUvLock
getPartTransformation
public static final ModelRotation X0_Y0
public static final ModelRotation X0_Y90
public static final ModelRotation X0_Y180
public static final ModelRotation X0_Y270
public static final ModelRotation X90_Y0
public static final ModelRotation X90_Y90
public static final ModelRotation X90_Y180
public static final ModelRotation X90_Y270
public static final ModelRotation X180_Y0
public static final ModelRotation X180_Y90
public static final ModelRotation X180_Y180
public static final ModelRotation X180_Y270
public static final ModelRotation X270_Y0
public static final ModelRotation X270_Y90
public static final ModelRotation X270_Y180
public static final ModelRotation X270_Y270
private static final java.util.Map<java.lang.Integer,ModelRotation> MAP_ROTATIONS
private final int combinedXY
private final Quaternion matrix
private final int quartersX
private final int quartersY
public static ModelRotation[] values()
for (ModelRotation c : ModelRotation.values()) System.out.println(c);
public static ModelRotation valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullprivate static int combineXY(int x, int y)
public TransformationMatrix getRotation()
getRotation
in interface IModelTransform
public static ModelRotation getModelRotation(int x, int y)