Package com.mojang.math
Class Transformation
java.lang.Object
com.mojang.math.Transformation
- All Implemented Interfaces:
- IForgeTransformation
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<Transformation>private booleanstatic final com.mojang.serialization.Codec<Transformation>private static final Transformationprivate org.joml.Quaternionfprivate final org.joml.Matrix4fprivate org.joml.Matrix3fprivate org.joml.Quaternionfprivate org.joml.Vector3fprivate org.joml.Vector3f
- 
Constructor SummaryConstructorsConstructorDescriptionTransformation(org.joml.Matrix4f p_253689_) Transformation(org.joml.Vector3f p_253831_, org.joml.Quaternionf p_253846_, org.joml.Vector3f p_254502_, org.joml.Quaternionf p_253912_) 
- 
Method SummaryModifier and TypeMethodDescriptionprivate voidcompose(Transformation p_121097_) private static org.joml.Matrix4fcompose(org.joml.Vector3f p_254465_, org.joml.Quaternionf p_254416_, org.joml.Vector3f p_254499_, org.joml.Quaternionf p_254334_) private voidbooleanorg.joml.Quaternionforg.joml.Matrix4forg.joml.Matrix3forg.joml.Quaternionforg.joml.Vector3fgetScale()org.joml.Vector3finthashCode()static Transformationidentity()inverse()slerp(Transformation p_175938_, float p_175939_) Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.common.extensions.IForgeTransformationapplyOrigin, blockCenterToCorner, blockCornerToCenter, isIdentity, rotateTransform, transformNormal, transformPosition
- 
Field Details- 
matrixprivate final org.joml.Matrix4f matrix
- 
CODEC
- 
EXTENDED_CODEC
- 
decomposedprivate boolean decomposed
- 
translation@Nullable private org.joml.Vector3f translation
- 
leftRotation@Nullable private org.joml.Quaternionf leftRotation
- 
scale@Nullable private org.joml.Vector3f scale
- 
rightRotation@Nullable private org.joml.Quaternionf rightRotation
- 
IDENTITY
- 
normalTransformprivate org.joml.Matrix3f normalTransform
 
- 
- 
Constructor Details- 
Transformationpublic Transformation(@Nullable org.joml.Matrix4f p_253689_) 
- 
Transformationpublic Transformation(@Nullable org.joml.Vector3f p_253831_, @Nullable org.joml.Quaternionf p_253846_, @Nullable org.joml.Vector3f p_254502_, @Nullable org.joml.Quaternionf p_253912_) 
 
- 
- 
Method Details- 
identity
- 
compose
- 
inverse
- 
ensureDecomposedprivate void ensureDecomposed()
- 
composeprivate static org.joml.Matrix4f compose(@Nullable org.joml.Vector3f p_254465_, @Nullable org.joml.Quaternionf p_254416_, @Nullable org.joml.Vector3f p_254499_, @Nullable org.joml.Quaternionf p_254334_) 
- 
getMatrixpublic org.joml.Matrix4f getMatrix()
- 
getTranslationpublic org.joml.Vector3f getTranslation()
- 
getLeftRotationpublic org.joml.Quaternionf getLeftRotation()
- 
getScalepublic org.joml.Vector3f getScale()
- 
getRightRotationpublic org.joml.Quaternionf getRightRotation()
- 
equals
- 
hashCodepublic int hashCode()
- 
getNormalMatrixpublic org.joml.Matrix3f getNormalMatrix()
- 
checkNormalTransformprivate void checkNormalTransform()
- 
slerp
 
-