Package net.minecraft.client.util.math
Class AffineTransformation
java.lang.Object
net.minecraft.client.util.math.AffineTransformation
@Environment(CLIENT) public final class AffineTransformation extends Object
- Mappings:
Namespace Name official f
intermediary net/minecraft/class_4590
named net/minecraft/client/util/math/AffineTransformation
-
Field Summary
Fields Modifier and Type Field Description private static AffineTransformation
IDENTITY
private boolean
initialized
private Matrix4f
matrix
private Quaternion
rotation1
private Quaternion
rotation2
private Vec3f
scale
private Vec3f
translation
-
Constructor Summary
Constructors Constructor Description AffineTransformation(Matrix4f matrix)
AffineTransformation(Vec3f translation, Quaternion rotation2, Vec3f scale, Quaternion rotation1)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object object)
static com.mojang.datafixers.util.Pair<Matrix3f,Vec3f>
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(Vec3f translation, Quaternion rotation2, Vec3f scale, Quaternion rotation1)
-
Field Details
-
IDENTITY
- Mappings:
Namespace Name Mixin selector official g
Lf;g:Lf;
intermediary field_20906
Lnet/minecraft/class_4590;field_20906:Lnet/minecraft/class_4590;
named IDENTITY
Lnet/minecraft/client/util/math/AffineTransformation;IDENTITY:Lnet/minecraft/client/util/math/AffineTransformation;
-
matrix
- Mappings:
Namespace Name Mixin selector official a
Lf;a:Lb;
intermediary field_20900
Lnet/minecraft/class_4590;field_20900:Lnet/minecraft/class_1159;
named matrix
Lnet/minecraft/client/util/math/AffineTransformation;matrix:Lnet/minecraft/util/math/Matrix4f;
-
initialized
private boolean initialized- Mappings:
Namespace Name Mixin selector official b
Lf;b:Z
intermediary field_20901
Lnet/minecraft/class_4590;field_20901:Z
named initialized
Lnet/minecraft/client/util/math/AffineTransformation;initialized:Z
-
translation
- Mappings:
Namespace Name Mixin selector official c
Lf;c:Lg;
intermediary field_20902
Lnet/minecraft/class_4590;field_20902:Lnet/minecraft/class_1160;
named translation
Lnet/minecraft/client/util/math/AffineTransformation;translation:Lnet/minecraft/util/math/Vec3f;
-
rotation2
- Mappings:
Namespace Name Mixin selector official d
Lf;d:Ld;
intermediary field_20903
Lnet/minecraft/class_4590;field_20903:Lnet/minecraft/class_1158;
named rotation2
Lnet/minecraft/client/util/math/AffineTransformation;rotation2:Lnet/minecraft/util/math/Quaternion;
-
scale
- Mappings:
Namespace Name Mixin selector official e
Lf;e:Lg;
intermediary field_20904
Lnet/minecraft/class_4590;field_20904:Lnet/minecraft/class_1160;
named scale
Lnet/minecraft/client/util/math/AffineTransformation;scale:Lnet/minecraft/util/math/Vec3f;
-
rotation1
- Mappings:
Namespace Name Mixin selector official f
Lf;f:Ld;
intermediary field_20905
Lnet/minecraft/class_4590;field_20905:Lnet/minecraft/class_1158;
named rotation1
Lnet/minecraft/client/util/math/AffineTransformation;rotation1:Lnet/minecraft/util/math/Quaternion;
-
-
Constructor Details
-
AffineTransformation
- Mappings:
Namespace Name Mixin selector official <init>
Lf;<init>(Lb;)V
intermediary <init>
Lnet/minecraft/class_4590;<init>(Lnet/minecraft/class_1159;)V
named <init>
Lnet/minecraft/client/util/math/AffineTransformation;<init>(Lnet/minecraft/util/math/Matrix4f;)V
-
AffineTransformation
public AffineTransformation(@Nullable Vec3f translation, @Nullable Quaternion rotation2, @Nullable Vec3f scale, @Nullable Quaternion rotation1)- Mappings:
Namespace Name Mixin selector official <init>
Lf;<init>(Lg;Ld;Lg;Ld;)V
intermediary <init>
Lnet/minecraft/class_4590;<init>(Lnet/minecraft/class_1160;Lnet/minecraft/class_1158;Lnet/minecraft/class_1160;Lnet/minecraft/class_1158;)V
named <init>
Lnet/minecraft/client/util/math/AffineTransformation;<init>(Lnet/minecraft/util/math/Vec3f;Lnet/minecraft/util/math/Quaternion;Lnet/minecraft/util/math/Vec3f;Lnet/minecraft/util/math/Quaternion;)V
-
-
Method Details
-
identity
- Mappings:
Namespace Name Mixin selector official a
Lf;a()Lf;
intermediary method_22931
Lnet/minecraft/class_4590;method_22931()Lnet/minecraft/class_4590;
named identity
Lnet/minecraft/client/util/math/AffineTransformation;identity()Lnet/minecraft/client/util/math/AffineTransformation;
-
multiply
- Mappings:
Namespace Name Mixin selector official a
Lf;a(Lf;)Lf;
intermediary method_22933
Lnet/minecraft/class_4590;method_22933(Lnet/minecraft/class_4590;)Lnet/minecraft/class_4590;
named multiply
Lnet/minecraft/client/util/math/AffineTransformation;multiply(Lnet/minecraft/client/util/math/AffineTransformation;)Lnet/minecraft/client/util/math/AffineTransformation;
-
invert
- Mappings:
Namespace Name Mixin selector official b
Lf;b()Lf;
intermediary method_22935
Lnet/minecraft/class_4590;method_22935()Lnet/minecraft/class_4590;
named invert
Lnet/minecraft/client/util/math/AffineTransformation;invert()Lnet/minecraft/client/util/math/AffineTransformation;
-
init
private void init()- Mappings:
Namespace Name Mixin selector official e
Lf;e()V
intermediary method_22938
Lnet/minecraft/class_4590;method_22938()V
named init
Lnet/minecraft/client/util/math/AffineTransformation;init()V
-
setup
private static Matrix4f setup(@Nullable Vec3f translation, @Nullable Quaternion rotation2, @Nullable Vec3f scale, @Nullable Quaternion rotation1)- Mappings:
Namespace Name Mixin selector official a
Lf;a(Lg;Ld;Lg;Ld;)Lb;
intermediary method_22934
Lnet/minecraft/class_4590;method_22934(Lnet/minecraft/class_1160;Lnet/minecraft/class_1158;Lnet/minecraft/class_1160;Lnet/minecraft/class_1158;)Lnet/minecraft/class_1159;
named setup
Lnet/minecraft/client/util/math/AffineTransformation;setup(Lnet/minecraft/util/math/Vec3f;Lnet/minecraft/util/math/Quaternion;Lnet/minecraft/util/math/Vec3f;Lnet/minecraft/util/math/Quaternion;)Lnet/minecraft/util/math/Matrix4f;
-
getLinearTransformationAndTranslationFromAffine
public static com.mojang.datafixers.util.Pair<Matrix3f,Vec3f> getLinearTransformationAndTranslationFromAffine(Matrix4f affineTransform)- Mappings:
Namespace Name Mixin selector official a
Lf;a(Lb;)Lcom/mojang/datafixers/util/Pair;
intermediary method_22932
Lnet/minecraft/class_4590;method_22932(Lnet/minecraft/class_1159;)Lcom/mojang/datafixers/util/Pair;
named getLinearTransformationAndTranslationFromAffine
Lnet/minecraft/client/util/math/AffineTransformation;getLinearTransformationAndTranslationFromAffine(Lnet/minecraft/util/math/Matrix4f;)Lcom/mojang/datafixers/util/Pair;
-
getMatrix
- Mappings:
Namespace Name Mixin selector official c
Lf;c()Lb;
intermediary method_22936
Lnet/minecraft/class_4590;method_22936()Lnet/minecraft/class_1159;
named getMatrix
Lnet/minecraft/client/util/math/AffineTransformation;getMatrix()Lnet/minecraft/util/math/Matrix4f;
-
getRotation2
- Mappings:
Namespace Name Mixin selector official d
Lf;d()Ld;
intermediary method_22937
Lnet/minecraft/class_4590;method_22937()Lnet/minecraft/class_1158;
named getRotation2
Lnet/minecraft/client/util/math/AffineTransformation;getRotation2()Lnet/minecraft/util/math/Quaternion;
-
equals
-
hashCode
public int hashCode()
-