Package com.mojang.math
Class Transformation
java.lang.Object
com.mojang.math.Transformation
- All Implemented Interfaces:
IForgeTransformation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate static final Transformationprivate Quaternionprivate final Matrix4fprivate Matrix3fprivate Quaternionprivate Vector3fprivate Vector3f -
Constructor Summary
ConstructorsConstructorDescriptionTransformation(Matrix4f p_121087_) Transformation(Vector3f p_121089_, Quaternion p_121090_, Vector3f p_121091_, Quaternion p_121092_) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcompose(Transformation p_121097_) private static Matrix4fcompose(Vector3f p_121099_, Quaternion p_121100_, Vector3f p_121101_, Quaternion p_121102_) private voidbooleangetScale()inthashCode()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.minecraftforge.client.extensions.IForgeTransformation
applyOrigin, blockCenterToCorner, blockCornerToCenter, isIdentity, push, rotateTransform, transformNormal, transformPosition
-
Field Details
-
matrix
-
decomposed
private boolean decomposed -
translation
-
leftRotation
-
scale
-
rightRotation
-
IDENTITY
-
normalTransform
-
-
Constructor Details
-
Transformation
-
Transformation
public Transformation(@Nullable Vector3f p_121089_, @Nullable Quaternion p_121090_, @Nullable Vector3f p_121091_, @Nullable Quaternion p_121092_)
-
-
Method Details
-
identity
-
compose
-
inverse
-
ensureDecomposed
private void ensureDecomposed() -
compose
private static Matrix4f compose(@Nullable Vector3f p_121099_, @Nullable Quaternion p_121100_, @Nullable Vector3f p_121101_, @Nullable Quaternion p_121102_) -
toAffine
-
getMatrix
-
getTranslation
-
getLeftRotation
-
getScale
-
getRightRotation
-
equals
-
hashCode
public int hashCode() -
getNormalMatrix
-
checkNormalTransform
private void checkNormalTransform() -
slerp
-