Package net.minecraft.util.math.vector
Class TransformationMatrix
- java.lang.Object
-
- net.minecraft.util.math.vector.TransformationMatrix
-
- All Implemented Interfaces:
IForgeTransformationMatrix
public final class TransformationMatrix extends java.lang.Object implements IForgeTransformationMatrix
-
-
Field Summary
Fields Modifier and Type Field Description private booleandecomposedprivate static TransformationMatrixIDENTITYprivate QuaternionleftRotationprivate Matrix4fmatrixprivate Matrix3fnormalTransformprivate QuaternionrightRotationprivate Vector3fscaleprivate Vector3ftranslation
-
Constructor Summary
Constructors Constructor Description TransformationMatrix(Matrix4f p_i225915_1_)TransformationMatrix(Vector3f p_i225916_1_, Quaternion p_i225916_2_, Vector3f p_i225916_3_, Quaternion p_i225916_4_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidcheckNormalTransform()TransformationMatrixcompose(TransformationMatrix p_227985_1_)private static Matrix4fcompose(Vector3f p_227986_0_, Quaternion p_227986_1_, Vector3f p_227986_2_, Quaternion p_227986_3_)private voidensureDecomposed()booleanequals(java.lang.Object p_equals_1_)QuaterniongetLeftRotation()Matrix4fgetMatrix()Matrix3fgetNormalMatrix()QuaterniongetRightRot()Vector3fgetScale()Vector3fgetTranslation()inthashCode()static TransformationMatrixidentity()TransformationMatrixinverse()static com.mojang.datafixers.util.Pair<Matrix3f,Vector3f>toAffine(Matrix4f p_227984_0_)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraftforge.client.extensions.IForgeTransformationMatrix
applyOrigin, blockCenterToCorner, blockCornerToCenter, getTransformaion, isIdentity, push, rotateTransform, transformNormal, transformPosition
-
-
-
-
Field Detail
-
matrix
private final Matrix4f matrix
-
decomposed
private boolean decomposed
-
translation
@Nullable private Vector3f translation
-
leftRotation
@Nullable private Quaternion leftRotation
-
scale
@Nullable private Vector3f scale
-
rightRotation
@Nullable private Quaternion rightRotation
-
IDENTITY
private static final TransformationMatrix IDENTITY
-
normalTransform
private Matrix3f normalTransform
-
-
Constructor Detail
-
TransformationMatrix
public TransformationMatrix(@Nullable Matrix4f p_i225915_1_)
-
TransformationMatrix
public TransformationMatrix(@Nullable Vector3f p_i225916_1_, @Nullable Quaternion p_i225916_2_, @Nullable Vector3f p_i225916_3_, @Nullable Quaternion p_i225916_4_)
-
-
Method Detail
-
identity
public static TransformationMatrix identity()
-
compose
public TransformationMatrix compose(TransformationMatrix p_227985_1_)
- Specified by:
composein interfaceIForgeTransformationMatrix
-
inverse
@Nullable public TransformationMatrix inverse()
- Specified by:
inversein interfaceIForgeTransformationMatrix
-
ensureDecomposed
private void ensureDecomposed()
-
compose
private static Matrix4f compose(@Nullable Vector3f p_227986_0_, @Nullable Quaternion p_227986_1_, @Nullable Vector3f p_227986_2_, @Nullable Quaternion p_227986_3_)
-
toAffine
public static com.mojang.datafixers.util.Pair<Matrix3f,Vector3f> toAffine(Matrix4f p_227984_0_)
-
getMatrix
public Matrix4f getMatrix()
-
getLeftRotation
public Quaternion getLeftRotation()
-
equals
public boolean equals(java.lang.Object p_equals_1_)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getTranslation
public Vector3f getTranslation()
-
getScale
public Vector3f getScale()
-
getRightRot
public Quaternion getRightRot()
-
getNormalMatrix
public Matrix3f getNormalMatrix()
-
checkNormalTransform
private void checkNormalTransform()
-
-