Package com.mojang.math
Class Transformation
java.lang.Object
com.mojang.math.Transformation
- All Implemented Interfaces:
ITransformationExtension
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<Transformation> private booleanstatic final com.mojang.serialization.Codec<Transformation> private static final Transformationprivate Quaternionfprivate final Matrix4fprivate Matrix3fprivate Quaternionfprivate Vector3fprivate Vector3f -
Constructor Summary
ConstructorsConstructorDescriptionTransformation(Matrix4f pMatrix) Transformation(Vector3f pTranslation, Quaternionf pLeftRotation, Vector3f pScale, Quaternionf pRightRotation) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcompose(Transformation pOther) private static Matrix4fcompose(Vector3f pTranslation, Quaternionf pLeftRotation, Vector3f pScale, Quaternionf pRightRotation) private voidbooleangetScale()inthashCode()static Transformationidentity()inverse()slerp(Transformation pTransformation, float pDelta) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.common.extensions.ITransformationExtension
applyOrigin, blockCenterToCorner, blockCornerToCenter, isIdentity, rotateTransform, transformNormal, transformPosition
-
Field Details
-
matrix
-
CODEC
-
EXTENDED_CODEC
-
decomposed
private boolean decomposed -
translation
-
leftRotation
-
scale
-
rightRotation
-
IDENTITY
-
normalTransform
-
-
Constructor Details
-
Transformation
-
Transformation
public Transformation(@Nullable Vector3f pTranslation, @Nullable Quaternionf pLeftRotation, @Nullable Vector3f pScale, @Nullable Quaternionf pRightRotation)
-
-
Method Details
-
identity
-
compose
-
inverse
-
ensureDecomposed
private void ensureDecomposed() -
compose
private static Matrix4f compose(@Nullable Vector3f pTranslation, @Nullable Quaternionf pLeftRotation, @Nullable Vector3f pScale, @Nullable Quaternionf pRightRotation) -
getMatrix
-
getTranslation
-
getLeftRotation
-
getScale
-
getRightRotation
-
equals
-
hashCode
public int hashCode() -
getNormalMatrix
-
checkNormalTransform
private void checkNormalTransform() -
slerp
-