Package net.minecraft.util.math.vector
Class TransformationMatrix
java.lang.Object
net.minecraft.util.math.vector.TransformationMatrix
- All Implemented Interfaces:
IForgeTransformationMatrix
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private static final TransformationMatrix
private Quaternion
private final Matrix4f
private Matrix3f
private Quaternion
private Vector3f
private Vector3f
-
Constructor Summary
ConstructorDescriptionTransformationMatrix
(Matrix4f p_i225915_1_) TransformationMatrix
(Vector3f p_i225916_1_, Quaternion p_i225916_2_, Vector3f p_i225916_3_, Quaternion p_i225916_4_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
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
boolean
getScale()
int
hashCode()
static TransformationMatrix
identity()
inverse()
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 Details
-
matrix
-
decomposed
private boolean decomposed -
translation
-
leftRotation
-
scale
-
rightRotation
-
IDENTITY
-
normalTransform
-
-
Constructor Details
-
TransformationMatrix
-
TransformationMatrix
public TransformationMatrix(@Nullable Vector3f p_i225916_1_, @Nullable Quaternion p_i225916_2_, @Nullable Vector3f p_i225916_3_, @Nullable Quaternion p_i225916_4_)
-
-
Method Details
-
identity
-
compose
- Specified by:
compose
in interfaceIForgeTransformationMatrix
-
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
-
getMatrix
-
getLeftRotation
-
equals
-
hashCode
public int hashCode() -
getTranslation
-
getScale
-
getRightRot
-
getNormalMatrix
-
checkNormalTransform
private void checkNormalTransform()
-