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 boolean
decomposed
private static TransformationMatrix
IDENTITY
private Quaternion
leftRotation
private Matrix4f
matrix
private Matrix3f
normalTransform
private Quaternion
rightRotation
private Vector3f
scale
private Vector3f
translation
-
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 void
checkNormalTransform()
TransformationMatrix
compose(TransformationMatrix p_227985_1_)
private static Matrix4f
compose(Vector3f p_227986_0_, Quaternion p_227986_1_, Vector3f p_227986_2_, Quaternion p_227986_3_)
private void
ensureDecomposed()
boolean
equals(java.lang.Object p_equals_1_)
Quaternion
getLeftRotation()
Matrix4f
getMatrix()
Matrix3f
getNormalMatrix()
Quaternion
getRightRot()
Vector3f
getScale()
Vector3f
getTranslation()
int
hashCode()
static TransformationMatrix
identity()
TransformationMatrix
inverse()
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:
compose
in interfaceIForgeTransformationMatrix
-
inverse
@Nullable public TransformationMatrix inverse()
- Specified by:
inverse
in 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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getTranslation
public Vector3f getTranslation()
-
getScale
public Vector3f getScale()
-
getRightRot
public Quaternion getRightRot()
-
getNormalMatrix
public Matrix3f getNormalMatrix()
-
checkNormalTransform
private void checkNormalTransform()
-
-