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 org.joml.Quaternionfprivate final org.joml.Matrix4fprivate org.joml.Matrix3fprivate org.joml.Quaternionfprivate org.joml.Vector3fprivate org.joml.Vector3f -
Constructor Summary
ConstructorsConstructorDescriptionTransformation(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 Summary
Modifier 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.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
private final org.joml.Matrix4f matrix -
CODEC
-
EXTENDED_CODEC
-
decomposed
private 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
-
normalTransform
private org.joml.Matrix3f normalTransform
-
-
Constructor Details
-
Transformation
public Transformation(@Nullable org.joml.Matrix4f p_253689_) -
Transformation
public 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
-
ensureDecomposed
private void ensureDecomposed() -
compose
private 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_) -
getMatrix
public org.joml.Matrix4f getMatrix() -
getTranslation
public org.joml.Vector3f getTranslation() -
getLeftRotation
public org.joml.Quaternionf getLeftRotation() -
getScale
public org.joml.Vector3f getScale() -
getRightRotation
public org.joml.Quaternionf getRightRotation() -
equals
-
hashCode
public int hashCode() -
getNormalMatrix
public org.joml.Matrix3f getNormalMatrix() -
checkNormalTransform
private void checkNormalTransform() -
slerp
-