public final class TransformationMatrix extends java.lang.Object implements IForgeTransformationMatrix
Modifier and Type | Field and Description |
---|---|
private boolean |
decomposed |
private static TransformationMatrix |
IDENTITY |
private Matrix4f |
matrix |
private Matrix3f |
normalTransform |
private Quaternion |
rotationLeft |
private Quaternion |
rotationRight |
private Vector3f |
scale |
private Vector3f |
translation |
Constructor and Description |
---|
TransformationMatrix(Matrix4f matrixIn) |
TransformationMatrix(Vector3f translationIn,
Quaternion rotationLeftIn,
Vector3f scaleIn,
Quaternion rotationRightIn) |
Modifier and Type | Method and Description |
---|---|
static com.mojang.datafixers.util.Pair<Matrix3f,Vector3f> |
affine(Matrix4f matrixIn) |
private void |
checkNormalTransform() |
TransformationMatrix |
composeVanilla(TransformationMatrix matrixIn) |
private static Matrix4f |
composeVanilla(Vector3f p_227986_0_,
Quaternion p_227986_1_,
Vector3f p_227986_2_,
Quaternion p_227986_3_) |
private void |
decompose() |
boolean |
equals(java.lang.Object p_equals_1_) |
Matrix4f |
getMatrix() |
Matrix3f |
getNormalMatrix() |
Quaternion |
getRightRot() |
Quaternion |
getRotationLeft() |
Vector3f |
getScale() |
Vector3f |
getTranslation() |
int |
hashCode() |
static TransformationMatrix |
identity() |
TransformationMatrix |
inverseVanilla() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
applyOrigin, blockCenterToCorner, blockCornerToCenter, compose, getTransformaion, inverse, isIdentity, push, rotateTransform, transformNormal, transformPosition
private final Matrix4f matrix
private boolean decomposed
@Nullable private Vector3f translation
@Nullable private Quaternion rotationLeft
@Nullable private Vector3f scale
@Nullable private Quaternion rotationRight
private static final TransformationMatrix IDENTITY
private Matrix3f normalTransform
public TransformationMatrix(@Nullable Matrix4f matrixIn)
public TransformationMatrix(@Nullable Vector3f translationIn, @Nullable Quaternion rotationLeftIn, @Nullable Vector3f scaleIn, @Nullable Quaternion rotationRightIn)
public static TransformationMatrix identity()
public TransformationMatrix composeVanilla(TransformationMatrix matrixIn)
@Nullable public TransformationMatrix inverseVanilla()
private void decompose()
private static Matrix4f composeVanilla(@Nullable Vector3f p_227986_0_, @Nullable Quaternion p_227986_1_, @Nullable Vector3f p_227986_2_, @Nullable Quaternion p_227986_3_)
public Matrix4f getMatrix()
public Quaternion getRotationLeft()
public boolean equals(java.lang.Object p_equals_1_)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Vector3f getTranslation()
public Vector3f getScale()
public Quaternion getRightRot()
public Matrix3f getNormalMatrix()
private void checkNormalTransform()