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> static final Transformationprivate @Nullable Quaternionfcprivate final Matrix4fcprivate Matrix3fprivate @Nullable Quaternionfcprivate static final Vector3fcprivate static final Quaternionfcprivate static final Vector3fc -
Constructor Summary
ConstructorsConstructorDescriptionTransformation(@Nullable Vector3fc translation, @Nullable Quaternionfc leftRotation, @Nullable Vector3fc scale, @Nullable Quaternionfc rightRotation) Transformation(Matrix4fc matrix) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcompose(Transformation that) private static Matrix4fcompose(@Nullable Vector3fc translation, @Nullable Quaternionfc leftRotation, @Nullable Vector3fc scale, @Nullable Quaternionfc rightRotation) static Matrix4fccompose(Matrix4fc parent, Optional<Transformation> transform) private voidbooleaninthashCode()inverse()scale()slerp(Transformation that, float progress) Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ITransformationExtension
applyOrigin, blockCenterToCorner, blockCornerToCenter, isIdentity, rotateTransform, transformNormal, transformPosition
-
Field Details
-
ZERO_TRANSLATION
-
UNIT_SCALE
-
ZERO_ROTATION
-
matrix
-
CODEC
-
EXTENDED_CODEC
-
decomposed
private boolean decomposed -
translation
-
leftRotation
-
scale
-
rightRotation
-
IDENTITY
-
normalTransform
-
-
Constructor Details
-
Transformation
-
Transformation
public Transformation(@Nullable Vector3fc translation, @Nullable Quaternionfc leftRotation, @Nullable Vector3fc scale, @Nullable Quaternionfc rightRotation)
-
-
Method Details
-
compose
-
inverse
-
ensureDecomposed
private void ensureDecomposed() -
compose
private static Matrix4f compose(@Nullable Vector3fc translation, @Nullable Quaternionfc leftRotation, @Nullable Vector3fc scale, @Nullable Quaternionfc rightRotation) -
getMatrix
-
getMatrixCopy
-
translation
-
leftRotation
-
scale
-
rightRotation
-
equals
-
hashCode
-
getNormalMatrix
-
checkNormalTransform
private void checkNormalTransform() -
slerp
-
compose
-