public class TRSRTransformation extends java.lang.Object implements IModelState, ITransformation
Constructor and Description |
---|
TRSRTransformation(Matrix4f matrix) |
TRSRTransformation(Vector3f translation,
Quat4f leftRot,
Vector3f scale,
Quat4f rightRot) |
Modifier and Type | Method and Description |
---|---|
<any> |
apply(<any> part) |
static TRSRTransformation |
blockCenterToCorner(TRSRTransformation transform)
convert transformation from assuming center-block system to corner-block system
|
static TRSRTransformation |
blockCornerToCenter(TRSRTransformation transform)
convert transformation from assuming corner-block system to center-block system
|
TRSRTransformation |
compose(TRSRTransformation b) |
boolean |
equals(java.lang.Object obj) |
Quat4f |
getLeftRot() |
Matrix4f |
getMatrix() |
static Matrix4f |
getMatrix(EnumFacing facing) |
static Matrix4f |
getMatrix(ItemTransformVec3f transform) |
Quat4f |
getRightRot() |
Vector3f |
getScale() |
Vector3f |
getTranslation() |
int |
hashCode() |
static TRSRTransformation |
identity() |
static boolean |
isInteger(Matrix4f matrix) |
static Vector3f |
lerp(Tuple3f from,
Tuple3f to,
float progress) |
static Vector4f |
lerp(Tuple4f from,
Tuple4f to,
float progress) |
static Matrix4f |
mul(Vector3f translation,
Quat4f leftRot,
Vector3f scale,
Quat4f rightRot) |
static Quat4f |
quatFromYXZ(float y,
float x,
float z) |
static Quat4f |
quatFromYXZ(Vector3f yxz) |
static Quat4f |
quatFromYXZDegrees(Vector3f yxz) |
EnumFacing |
rotate(EnumFacing facing) |
int |
rotate(EnumFacing facing,
int vertexIndex) |
static EnumFacing |
rotate(Matrix4f matrix,
EnumFacing facing) |
static Quat4f |
slerp(Quat4f from,
Quat4f to,
float progress) |
TRSRTransformation |
slerp(TRSRTransformation that,
float progress) |
static <any> |
svdDecompose(Matrix3f m) |
static <any> |
toAffine(Matrix4f m) |
ItemTransformVec3f |
toItemTransform() |
static org.lwjgl.util.vector.Matrix4f |
toLwjgl(Matrix4f m) |
static org.lwjgl.util.vector.Vector3f |
toLwjgl(Vector3f vec) |
static org.lwjgl.util.vector.Vector4f |
toLwjgl(Vector4f vec) |
java.lang.String |
toString() |
static Matrix4f |
toVecmath(org.lwjgl.util.vector.Matrix4f m) |
static Vector3f |
toVecmath(org.lwjgl.util.vector.Vector3f vec) |
static Vector4f |
toVecmath(org.lwjgl.util.vector.Vector4f vec) |
static Vector3f |
toYXZ(Quat4f q) |
static Vector3f |
toYXZDegrees(Quat4f q) |
public TRSRTransformation(Matrix4f matrix)
public TRSRTransformation(Vector3f translation, Quat4f leftRot, Vector3f scale, Quat4f rightRot)
public static Matrix4f getMatrix(ItemTransformVec3f transform)
public static Matrix4f getMatrix(EnumFacing facing)
public static TRSRTransformation identity()
public TRSRTransformation compose(TRSRTransformation b)
public static Quat4f quatFromYXZDegrees(Vector3f yxz)
public static Quat4f quatFromYXZ(Vector3f yxz)
public static Quat4f quatFromYXZ(float y, float x, float z)
public static Vector3f toYXZDegrees(Quat4f q)
public static Vector3f toYXZ(Quat4f q)
public static Matrix4f mul(Vector3f translation, Quat4f leftRot, Vector3f scale, Quat4f rightRot)
public static <any> svdDecompose(Matrix3f m)
public static <any> toAffine(Matrix4f m)
public ItemTransformVec3f toItemTransform()
public Matrix4f getMatrix()
getMatrix
in interface ITransformation
public Vector3f getTranslation()
public Quat4f getLeftRot()
public Vector3f getScale()
public Quat4f getRightRot()
public <any> apply(<any> part)
apply
in interface IModelState
public EnumFacing rotate(EnumFacing facing)
rotate
in interface ITransformation
public static EnumFacing rotate(Matrix4f matrix, EnumFacing facing)
public static boolean isInteger(Matrix4f matrix)
public int rotate(EnumFacing facing, int vertexIndex)
rotate
in interface ITransformation
public java.lang.String toString()
toString
in class java.lang.Object
public static TRSRTransformation blockCenterToCorner(TRSRTransformation transform)
public static TRSRTransformation blockCornerToCenter(TRSRTransformation transform)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public static Vector3f toVecmath(org.lwjgl.util.vector.Vector3f vec)
public static Vector4f toVecmath(org.lwjgl.util.vector.Vector4f vec)
public static Matrix4f toVecmath(org.lwjgl.util.vector.Matrix4f m)
public static org.lwjgl.util.vector.Vector3f toLwjgl(Vector3f vec)
public static org.lwjgl.util.vector.Vector4f toLwjgl(Vector4f vec)
public static org.lwjgl.util.vector.Matrix4f toLwjgl(Matrix4f m)
public static Vector3f lerp(Tuple3f from, Tuple3f to, float progress)
public static Vector4f lerp(Tuple4f from, Tuple4f to, float progress)
public static Quat4f slerp(Quat4f from, Quat4f to, float progress)
public TRSRTransformation slerp(TRSRTransformation that, float progress)