Package com.mojang.math
Class Transformation
java.lang.Object
com.mojang.math.Transformation
- All Implemented Interfaces:
IForgeTransformation
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private static final Transformation
private Quaternion
private final Matrix4f
private Matrix3f
private Quaternion
private Vector3f
private Vector3f
-
Constructor Summary
ConstructorDescriptionTransformation
(Matrix4f p_121087_) Transformation
(Vector3f p_121089_, Quaternion p_121090_, Vector3f p_121091_, Quaternion p_121092_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
compose
(Transformation p_121097_) private static Matrix4f
compose
(Vector3f p_121099_, Quaternion p_121100_, Vector3f p_121101_, Quaternion p_121102_) private void
boolean
getScale()
int
hashCode()
static Transformation
identity()
inverse()
slerp
(Transformation p_175938_, float p_175939_) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods 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
-