@Environment(value=CLIENT) public final class AffineTransformation extends Object
Modifier and Type | Field and Description |
---|---|
private static AffineTransformation |
IDENTITY |
private boolean |
initialized |
private Matrix4f |
matrix |
private Quaternion |
rotation1 |
private Quaternion |
rotation2 |
private Vector3f |
scale |
private Vector3f |
translation |
Constructor and Description |
---|
AffineTransformation(Matrix4f matrix) |
AffineTransformation(Vector3f translation,
Quaternion rotation2,
Vector3f scale,
Quaternion rotation1) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
static com.mojang.datafixers.util.Pair<Matrix3f,Vector3f> |
getLinearTransformationAndTranslationFromAffine(Matrix4f affineTransform) |
Matrix4f |
getMatrix() |
Quaternion |
getRotation2() |
int |
hashCode() |
static AffineTransformation |
identity() |
private void |
init() |
AffineTransformation |
invert() |
AffineTransformation |
multiply(AffineTransformation other) |
private static Matrix4f |
setup(Vector3f translation,
Quaternion rotation2,
Vector3f scale,
Quaternion rotation1) |
private static final AffineTransformation IDENTITY
private final Matrix4f matrix
private boolean initialized
@Nullable private Quaternion rotation2
@Nullable private Quaternion rotation1
public AffineTransformation(@Nullable Vector3f translation, @Nullable Quaternion rotation2, @Nullable Vector3f scale, @Nullable Quaternion rotation1)
public static AffineTransformation identity()
public AffineTransformation multiply(AffineTransformation other)
@Nullable public AffineTransformation invert()
private void init()
private static Matrix4f setup(@Nullable Vector3f translation, @Nullable Quaternion rotation2, @Nullable Vector3f scale, @Nullable Quaternion rotation1)
public static com.mojang.datafixers.util.Pair<Matrix3f,Vector3f> getLinearTransformationAndTranslationFromAffine(Matrix4f affineTransform)
public Matrix4f getMatrix()
public Quaternion getRotation2()