Class Transformation
java.lang.Object
com.mojang.math.Transformation
- All Implemented Interfaces:
ITransformationExtension
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Codec<Transformation> private booleanstatic final Codec<Transformation> static final Transformationprivate @Nullable org.joml.Quaternionfcprivate final org.joml.Matrix4fcprivate org.joml.Matrix3fprivate @Nullable org.joml.Quaternionfcprivate @Nullable org.joml.Vector3fcprivate @Nullable org.joml.Vector3fcprivate static final org.joml.Vector3fcprivate static final org.joml.Quaternionfcprivate static final org.joml.Vector3fc -
Constructor Summary
ConstructorsConstructorDescriptionTransformation(@Nullable org.joml.Vector3fc translation, @Nullable org.joml.Quaternionfc leftRotation, @Nullable org.joml.Vector3fc scale, @Nullable org.joml.Quaternionfc rightRotation) Transformation(org.joml.Matrix4fc matrix) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcompose(Transformation that) private static org.joml.Matrix4fcompose(@Nullable org.joml.Vector3fc translation, @Nullable org.joml.Quaternionfc leftRotation, @Nullable org.joml.Vector3fc scale, @Nullable org.joml.Quaternionfc rightRotation) static org.joml.Matrix4fccompose(org.joml.Matrix4fc parent, Optional<Transformation> transform) private voidbooleanorg.joml.Matrix4fcorg.joml.Matrix4forg.joml.Matrix3fcinthashCode()@Nullable Transformationinverse()org.joml.Quaternionfcorg.joml.Quaternionfcorg.joml.Vector3fcscale()slerp(Transformation that, float progress) org.joml.Vector3fcMethods 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
private static final org.joml.Vector3fc ZERO_TRANSLATION -
UNIT_SCALE
private static final org.joml.Vector3fc UNIT_SCALE -
ZERO_ROTATION
private static final org.joml.Quaternionfc ZERO_ROTATION -
matrix
private final org.joml.Matrix4fc matrix -
CODEC
-
EXTENDED_CODEC
-
decomposed
private boolean decomposed -
translation
private @Nullable org.joml.Vector3fc translation -
leftRotation
private @Nullable org.joml.Quaternionfc leftRotation -
scale
private @Nullable org.joml.Vector3fc scale -
rightRotation
private @Nullable org.joml.Quaternionfc rightRotation -
IDENTITY
-
normalTransform
private org.joml.Matrix3f normalTransform
-
-
Constructor Details
-
Transformation
public Transformation(org.joml.Matrix4fc matrix) -
Transformation
public Transformation(@Nullable org.joml.Vector3fc translation, @Nullable org.joml.Quaternionfc leftRotation, @Nullable org.joml.Vector3fc scale, @Nullable org.joml.Quaternionfc rightRotation)
-
-
Method Details
-
compose
-
inverse
-
ensureDecomposed
private void ensureDecomposed() -
compose
private static org.joml.Matrix4f compose(@Nullable org.joml.Vector3fc translation, @Nullable org.joml.Quaternionfc leftRotation, @Nullable org.joml.Vector3fc scale, @Nullable org.joml.Quaternionfc rightRotation) -
getMatrix
public org.joml.Matrix4fc getMatrix() -
getMatrixCopy
public org.joml.Matrix4f getMatrixCopy() -
translation
public org.joml.Vector3fc translation() -
leftRotation
public org.joml.Quaternionfc leftRotation() -
scale
public org.joml.Vector3fc scale() -
rightRotation
public org.joml.Quaternionfc rightRotation() -
equals
-
hashCode
-
getNormalMatrix
public org.joml.Matrix3fc getNormalMatrix() -
checkNormalTransform
private void checkNormalTransform() -
slerp
-
compose
public static org.joml.Matrix4fc compose(org.joml.Matrix4fc parent, Optional<Transformation> transform)
-