Package net.minecraft.util.math
Class AffineTransformation
java.lang.Object
net.minecraft.util.math.AffineTransformation
An affine transformation is a decomposition of a 4×4 real matrix into
a rotation quaternion, a scale
3-vector, a second rotation quaternion, and a
translation 3-vector. It is also known as "TRSR"
transformation, meaning "translation rotation scale rotation".
This class is immutable; its matrix is lazily decomposed upon demand.
- Mappings:
Namespace Name official i
intermediary net/minecraft/class_4590
named net/minecraft/util/math/AffineTransformation
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final AffineTransformation
private boolean
private final Matrix4f
private @Nullable Quaternionf
private @Nullable Quaternionf
-
Constructor Summary
ConstructorDescriptionAffineTransformation
(@Nullable Matrix4f matrix) AffineTransformation
(@Nullable Vector3f translation, @Nullable Quaternionf rotation2, @Nullable Vector3f scale, @Nullable Quaternionf rotation1) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getScale()
int
hashCode()
static AffineTransformation
identity()
private void
init()
invert()
method_35864
(AffineTransformation affineTransformation, float float2) multiply
(AffineTransformation other) private static Matrix4f
setup
(@Nullable Vector3f vector3f, @Nullable Quaternionf quaternionf, @Nullable Vector3f vector3f2, @Nullable Quaternionf quaternionf2)
-
Field Details
-
IDENTITY
- Mappings:
Namespace Name Mixin selector official g
Li;g:Li;
intermediary field_20906
Lnet/minecraft/class_4590;field_20906:Lnet/minecraft/class_4590;
named IDENTITY
Lnet/minecraft/util/math/AffineTransformation;IDENTITY:Lnet/minecraft/util/math/AffineTransformation;
-
matrix
- Mappings:
Namespace Name Mixin selector official a
Li;a:Lorg/joml/Matrix4f;
intermediary field_20900
Lnet/minecraft/class_4590;field_20900:Lorg/joml/Matrix4f;
named matrix
Lnet/minecraft/util/math/AffineTransformation;matrix:Lorg/joml/Matrix4f;
-
initialized
private boolean initialized- Mappings:
Namespace Name Mixin selector official b
Li;b:Z
intermediary field_20901
Lnet/minecraft/class_4590;field_20901:Z
named initialized
Lnet/minecraft/util/math/AffineTransformation;initialized:Z
-
translation
- Mappings:
Namespace Name Mixin selector official c
Li;c:Lorg/joml/Vector3f;
intermediary field_20902
Lnet/minecraft/class_4590;field_20902:Lorg/joml/Vector3f;
named translation
Lnet/minecraft/util/math/AffineTransformation;translation:Lorg/joml/Vector3f;
-
rotation2
- Mappings:
Namespace Name Mixin selector official d
Li;d:Lorg/joml/Quaternionf;
intermediary field_20903
Lnet/minecraft/class_4590;field_20903:Lorg/joml/Quaternionf;
named rotation2
Lnet/minecraft/util/math/AffineTransformation;rotation2:Lorg/joml/Quaternionf;
-
scale
- Mappings:
Namespace Name Mixin selector official e
Li;e:Lorg/joml/Vector3f;
intermediary field_20904
Lnet/minecraft/class_4590;field_20904:Lorg/joml/Vector3f;
named scale
Lnet/minecraft/util/math/AffineTransformation;scale:Lorg/joml/Vector3f;
-
rotation1
- Mappings:
Namespace Name Mixin selector official f
Li;f:Lorg/joml/Quaternionf;
intermediary field_20905
Lnet/minecraft/class_4590;field_20905:Lorg/joml/Quaternionf;
named rotation1
Lnet/minecraft/util/math/AffineTransformation;rotation1:Lorg/joml/Quaternionf;
-
-
Constructor Details
-
AffineTransformation
- Mappings:
Namespace Name Mixin selector official <init>
Li;<init>(Lorg/joml/Matrix4f;)V
intermediary <init>
Lnet/minecraft/class_4590;<init>(Lorg/joml/Matrix4f;)V
named <init>
Lnet/minecraft/util/math/AffineTransformation;<init>(Lorg/joml/Matrix4f;)V
-
AffineTransformation
public AffineTransformation(@Nullable @Nullable Vector3f translation, @Nullable @Nullable Quaternionf rotation2, @Nullable @Nullable Vector3f scale, @Nullable @Nullable Quaternionf rotation1) - Mappings:
Namespace Name Mixin selector official <init>
Li;<init>(Lorg/joml/Vector3f;Lorg/joml/Quaternionf;Lorg/joml/Vector3f;Lorg/joml/Quaternionf;)V
intermediary <init>
Lnet/minecraft/class_4590;<init>(Lorg/joml/Vector3f;Lorg/joml/Quaternionf;Lorg/joml/Vector3f;Lorg/joml/Quaternionf;)V
named <init>
Lnet/minecraft/util/math/AffineTransformation;<init>(Lorg/joml/Vector3f;Lorg/joml/Quaternionf;Lorg/joml/Vector3f;Lorg/joml/Quaternionf;)V
-
-
Method Details
-
identity
- Mappings:
Namespace Name Mixin selector official a
Li;a()Li;
intermediary method_22931
Lnet/minecraft/class_4590;method_22931()Lnet/minecraft/class_4590;
named identity
Lnet/minecraft/util/math/AffineTransformation;identity()Lnet/minecraft/util/math/AffineTransformation;
-
multiply
- Mappings:
Namespace Name Mixin selector official a
Li;a(Li;)Li;
intermediary method_22933
Lnet/minecraft/class_4590;method_22933(Lnet/minecraft/class_4590;)Lnet/minecraft/class_4590;
named multiply
Lnet/minecraft/util/math/AffineTransformation;multiply(Lnet/minecraft/util/math/AffineTransformation;)Lnet/minecraft/util/math/AffineTransformation;
-
invert
- Mappings:
Namespace Name Mixin selector official b
Li;b()Li;
intermediary method_22935
Lnet/minecraft/class_4590;method_22935()Lnet/minecraft/class_4590;
named invert
Lnet/minecraft/util/math/AffineTransformation;invert()Lnet/minecraft/util/math/AffineTransformation;
-
init
private void init()- Mappings:
Namespace Name Mixin selector official h
Li;h()V
intermediary method_22938
Lnet/minecraft/class_4590;method_22938()V
named init
Lnet/minecraft/util/math/AffineTransformation;init()V
-
setup
private static Matrix4f setup(@Nullable @Nullable Vector3f vector3f, @Nullable @Nullable Quaternionf quaternionf, @Nullable @Nullable Vector3f vector3f2, @Nullable @Nullable Quaternionf quaternionf2) - Mappings:
Namespace Name Mixin selector official a
Li;a(Lorg/joml/Vector3f;Lorg/joml/Quaternionf;Lorg/joml/Vector3f;Lorg/joml/Quaternionf;)Lorg/joml/Matrix4f;
intermediary method_22934
Lnet/minecraft/class_4590;method_22934(Lorg/joml/Vector3f;Lorg/joml/Quaternionf;Lorg/joml/Vector3f;Lorg/joml/Quaternionf;)Lorg/joml/Matrix4f;
named setup
Lnet/minecraft/util/math/AffineTransformation;setup(Lorg/joml/Vector3f;Lorg/joml/Quaternionf;Lorg/joml/Vector3f;Lorg/joml/Quaternionf;)Lorg/joml/Matrix4f;
-
getMatrix
- Mappings:
Namespace Name Mixin selector official c
Li;c()Lorg/joml/Matrix4f;
intermediary method_22936
Lnet/minecraft/class_4590;method_22936()Lorg/joml/Matrix4f;
named getMatrix
Lnet/minecraft/util/math/AffineTransformation;getMatrix()Lorg/joml/Matrix4f;
-
getTranslation
- Mappings:
Namespace Name Mixin selector official d
Li;d()Lorg/joml/Vector3f;
intermediary method_35865
Lnet/minecraft/class_4590;method_35865()Lorg/joml/Vector3f;
named getTranslation
Lnet/minecraft/util/math/AffineTransformation;getTranslation()Lorg/joml/Vector3f;
-
getRotation2
- Mappings:
Namespace Name Mixin selector official e
Li;e()Lorg/joml/Quaternionf;
intermediary method_22937
Lnet/minecraft/class_4590;method_22937()Lorg/joml/Quaternionf;
named getRotation2
Lnet/minecraft/util/math/AffineTransformation;getRotation2()Lorg/joml/Quaternionf;
-
getScale
- Mappings:
Namespace Name Mixin selector official f
Li;f()Lorg/joml/Vector3f;
intermediary method_35866
Lnet/minecraft/class_4590;method_35866()Lorg/joml/Vector3f;
named getScale
Lnet/minecraft/util/math/AffineTransformation;getScale()Lorg/joml/Vector3f;
-
getRotation1
- Mappings:
Namespace Name Mixin selector official g
Li;g()Lorg/joml/Quaternionf;
intermediary method_35867
Lnet/minecraft/class_4590;method_35867()Lorg/joml/Quaternionf;
named getRotation1
Lnet/minecraft/util/math/AffineTransformation;getRotation1()Lorg/joml/Quaternionf;
-
equals
-
hashCode
public int hashCode() -
method_35864
- Mappings:
Namespace Name Mixin selector official a
Li;a(Li;F)Li;
intermediary method_35864
Lnet/minecraft/class_4590;method_35864(Lnet/minecraft/class_4590;F)Lnet/minecraft/class_4590;
named method_35864
Lnet/minecraft/util/math/AffineTransformation;method_35864(Lnet/minecraft/util/math/AffineTransformation;F)Lnet/minecraft/util/math/AffineTransformation;
-