public enum DirectionTransformation extends Enum<DirectionTransformation> implements StringIdentifiable
Modifier and Type | Field and Description |
---|---|
private AxisTransformation |
axisTransformation |
private static DirectionTransformation[][] |
COMBINATIONS |
private boolean |
flipX |
private boolean |
flipY |
private boolean |
flipZ |
private static DirectionTransformation[] |
INVERSES |
private Map<Direction,Direction> |
mappings |
private Matrix3f |
matrix |
private String |
name |
Modifier and Type | Method and Description |
---|---|
String |
asString() |
private it.unimi.dsi.fastutil.booleans.BooleanList |
getAxisFlips() |
Direction |
map(Direction direction) |
JigsawOrientation |
mapJigsawOrientation(JigsawOrientation orientation) |
DirectionTransformation |
prepend(DirectionTransformation transformation) |
boolean |
shouldFlipDirection(Direction.Axis axis) |
String |
toString() |
static DirectionTransformation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DirectionTransformation[] |
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, valueOf
createCodec, createCodec, method_28142
public static final DirectionTransformation IDENTITY
public static final DirectionTransformation ROT_180_FACE_XY
public static final DirectionTransformation ROT_180_FACE_XZ
public static final DirectionTransformation ROT_180_FACE_YZ
public static final DirectionTransformation ROT_120_NNN
public static final DirectionTransformation ROT_120_NNP
public static final DirectionTransformation ROT_120_NPN
public static final DirectionTransformation ROT_120_NPP
public static final DirectionTransformation ROT_120_PNN
public static final DirectionTransformation ROT_120_PNP
public static final DirectionTransformation ROT_120_PPN
public static final DirectionTransformation ROT_120_PPP
public static final DirectionTransformation ROT_180_EDGE_XY_NEG
public static final DirectionTransformation ROT_180_EDGE_XY_POS
public static final DirectionTransformation ROT_180_EDGE_XZ_NEG
public static final DirectionTransformation ROT_180_EDGE_XZ_POS
public static final DirectionTransformation ROT_180_EDGE_YZ_NEG
public static final DirectionTransformation ROT_180_EDGE_YZ_POS
public static final DirectionTransformation ROT_90_X_NEG
public static final DirectionTransformation ROT_90_X_POS
public static final DirectionTransformation ROT_90_Y_NEG
public static final DirectionTransformation ROT_90_Y_POS
public static final DirectionTransformation ROT_90_Z_NEG
public static final DirectionTransformation ROT_90_Z_POS
public static final DirectionTransformation INVERSION
public static final DirectionTransformation INVERT_X
public static final DirectionTransformation INVERT_Y
public static final DirectionTransformation INVERT_Z
public static final DirectionTransformation ROT_60_REF_NNN
public static final DirectionTransformation ROT_60_REF_NNP
public static final DirectionTransformation ROT_60_REF_NPN
public static final DirectionTransformation ROT_60_REF_NPP
public static final DirectionTransformation ROT_60_REF_PNN
public static final DirectionTransformation ROT_60_REF_PNP
public static final DirectionTransformation ROT_60_REF_PPN
public static final DirectionTransformation ROT_60_REF_PPP
public static final DirectionTransformation SWAP_XY
public static final DirectionTransformation SWAP_YZ
public static final DirectionTransformation SWAP_XZ
public static final DirectionTransformation SWAP_NEG_XY
public static final DirectionTransformation SWAP_NEG_YZ
public static final DirectionTransformation SWAP_NEG_XZ
public static final DirectionTransformation ROT_90_REF_X_NEG
public static final DirectionTransformation ROT_90_REF_X_POS
public static final DirectionTransformation ROT_90_REF_Y_NEG
public static final DirectionTransformation ROT_90_REF_Y_POS
public static final DirectionTransformation ROT_90_REF_Z_NEG
public static final DirectionTransformation ROT_90_REF_Z_POS
private static final DirectionTransformation[][] COMBINATIONS
private static final DirectionTransformation[] INVERSES
private final Matrix3f matrix
private final String name
private final boolean flipX
private final boolean flipY
private final boolean flipZ
private final AxisTransformation axisTransformation
public static DirectionTransformation[] values()
for (DirectionTransformation c : DirectionTransformation.values()) System.out.println(c);
public static DirectionTransformation 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 nullprivate it.unimi.dsi.fastutil.booleans.BooleanList getAxisFlips()
public DirectionTransformation prepend(DirectionTransformation transformation)
public String toString()
toString
in class Enum<DirectionTransformation>
public String asString()
asString
in interface StringIdentifiable
public boolean shouldFlipDirection(Direction.Axis axis)
public JigsawOrientation mapJigsawOrientation(JigsawOrientation orientation)