Package net.minecraft.util.math
Class Quaternion
java.lang.Object
net.minecraft.util.math.Quaternion
- Mappings:
Namespace Name official g
intermediary net/minecraft/class_1158
named net/minecraft/util/math/Quaternion
-
Field Summary
-
Constructor Summary
ConstructorDescriptionQuaternion
(float x, float y, float z, boolean degrees) Quaternion
(float x, float y, float z, float w) Quaternion
(Quaternion other) Quaternion
(Vec3f axis, float rotationAngle, boolean degrees) -
Method Summary
Modifier and TypeMethodDescriptionvoid
copy()
private static float
cos
(float value) boolean
static Quaternion
fromEulerXyz
(float x, float y, float z) static Quaternion
fromEulerXyz
(Vec3f vector) static Quaternion
fromEulerXyzDegrees
(Vec3f vector) static Quaternion
fromEulerYxz
(float x, float y, float z) float
getW()
float
getX()
float
getY()
float
getZ()
void
hamiltonProduct
(Quaternion other) int
hashCode()
void
method_35822
(Quaternion quaternion, float float2) void
void
scale
(float scale) void
set
(float x, float y, float z, float w) private static float
sin
(float value) toString()
-
Field Details
-
IDENTITY
- Mappings:
Namespace Name Mixin selector official a
Lg;a:Lg;
intermediary field_21493
Lnet/minecraft/class_1158;field_21493:Lnet/minecraft/class_1158;
named IDENTITY
Lnet/minecraft/util/math/Quaternion;IDENTITY:Lnet/minecraft/util/math/Quaternion;
-
x
private float x- Mappings:
Namespace Name Mixin selector official b
Lg;b:F
intermediary field_21582
Lnet/minecraft/class_1158;field_21582:F
named x
Lnet/minecraft/util/math/Quaternion;x:F
-
y
private float y- Mappings:
Namespace Name Mixin selector official c
Lg;c:F
intermediary field_21583
Lnet/minecraft/class_1158;field_21583:F
named y
Lnet/minecraft/util/math/Quaternion;y:F
-
z
private float z- Mappings:
Namespace Name Mixin selector official d
Lg;d:F
intermediary field_21584
Lnet/minecraft/class_1158;field_21584:F
named z
Lnet/minecraft/util/math/Quaternion;z:F
-
w
private float w- Mappings:
Namespace Name Mixin selector official e
Lg;e:F
intermediary field_21585
Lnet/minecraft/class_1158;field_21585:F
named w
Lnet/minecraft/util/math/Quaternion;w:F
-
-
Constructor Details
-
Quaternion
public Quaternion(float x, float y, float z, float w) - Mappings:
Namespace Name Mixin selector official <init>
Lg;<init>(FFFF)V
intermediary <init>
Lnet/minecraft/class_1158;<init>(FFFF)V
named <init>
Lnet/minecraft/util/math/Quaternion;<init>(FFFF)V
-
Quaternion
- Mappings:
Namespace Name Mixin selector official <init>
Lg;<init>(Lk;FZ)V
intermediary <init>
Lnet/minecraft/class_1158;<init>(Lnet/minecraft/class_1160;FZ)V
named <init>
Lnet/minecraft/util/math/Quaternion;<init>(Lnet/minecraft/util/math/Vec3f;FZ)V
-
Quaternion
public Quaternion(float x, float y, float z, boolean degrees) - Mappings:
Namespace Name Mixin selector official <init>
Lg;<init>(FFFZ)V
intermediary <init>
Lnet/minecraft/class_1158;<init>(FFFZ)V
named <init>
Lnet/minecraft/util/math/Quaternion;<init>(FFFZ)V
-
Quaternion
- Mappings:
Namespace Name Mixin selector official <init>
Lg;<init>(Lg;)V
intermediary <init>
Lnet/minecraft/class_1158;<init>(Lnet/minecraft/class_1158;)V
named <init>
Lnet/minecraft/util/math/Quaternion;<init>(Lnet/minecraft/util/math/Quaternion;)V
-
-
Method Details
-
fromEulerYxz
- Mappings:
Namespace Name Mixin selector official a
Lg;a(FFF)Lg;
intermediary method_35821
Lnet/minecraft/class_1158;method_35821(FFF)Lnet/minecraft/class_1158;
named fromEulerYxz
Lnet/minecraft/util/math/Quaternion;fromEulerYxz(FFF)Lnet/minecraft/util/math/Quaternion;
-
fromEulerXyzDegrees
- Mappings:
Namespace Name Mixin selector official a
Lg;a(Lk;)Lg;
intermediary method_35823
Lnet/minecraft/class_1158;method_35823(Lnet/minecraft/class_1160;)Lnet/minecraft/class_1158;
named fromEulerXyzDegrees
Lnet/minecraft/util/math/Quaternion;fromEulerXyzDegrees(Lnet/minecraft/util/math/Vec3f;)Lnet/minecraft/util/math/Quaternion;
-
fromEulerXyz
- Mappings:
Namespace Name Mixin selector official b
Lg;b(Lk;)Lg;
intermediary method_35826
Lnet/minecraft/class_1158;method_35826(Lnet/minecraft/class_1160;)Lnet/minecraft/class_1158;
named fromEulerXyz
Lnet/minecraft/util/math/Quaternion;fromEulerXyz(Lnet/minecraft/util/math/Vec3f;)Lnet/minecraft/util/math/Quaternion;
-
fromEulerXyz
- Mappings:
Namespace Name Mixin selector official b
Lg;b(FFF)Lg;
intermediary method_35825
Lnet/minecraft/class_1158;method_35825(FFF)Lnet/minecraft/class_1158;
named fromEulerXyz
Lnet/minecraft/util/math/Quaternion;fromEulerXyz(FFF)Lnet/minecraft/util/math/Quaternion;
-
toEulerYxz
- Mappings:
Namespace Name Mixin selector official a
Lg;a()Lk;
intermediary method_35820
Lnet/minecraft/class_1158;method_35820()Lnet/minecraft/class_1160;
named toEulerYxz
Lnet/minecraft/util/math/Quaternion;toEulerYxz()Lnet/minecraft/util/math/Vec3f;
-
toEulerYxzDegrees
- Mappings:
Namespace Name Mixin selector official b
Lg;b()Lk;
intermediary method_35824
Lnet/minecraft/class_1158;method_35824()Lnet/minecraft/class_1160;
named toEulerYxzDegrees
Lnet/minecraft/util/math/Quaternion;toEulerYxzDegrees()Lnet/minecraft/util/math/Vec3f;
-
toEulerXyz
- Mappings:
Namespace Name Mixin selector official c
Lg;c()Lk;
intermediary method_35827
Lnet/minecraft/class_1158;method_35827()Lnet/minecraft/class_1160;
named toEulerXyz
Lnet/minecraft/util/math/Quaternion;toEulerXyz()Lnet/minecraft/util/math/Vec3f;
-
toEulerXyzDegrees
- Mappings:
Namespace Name Mixin selector official d
Lg;d()Lk;
intermediary method_35828
Lnet/minecraft/class_1158;method_35828()Lnet/minecraft/class_1160;
named toEulerXyzDegrees
Lnet/minecraft/util/math/Quaternion;toEulerXyzDegrees()Lnet/minecraft/util/math/Vec3f;
-
equals
-
hashCode
public int hashCode() -
toString
-
getX
public float getX()- Mappings:
Namespace Name Mixin selector official e
Lg;e()F
intermediary method_4921
Lnet/minecraft/class_1158;method_4921()F
named getX
Lnet/minecraft/util/math/Quaternion;getX()F
-
getY
public float getY()- Mappings:
Namespace Name Mixin selector official f
Lg;f()F
intermediary method_4922
Lnet/minecraft/class_1158;method_4922()F
named getY
Lnet/minecraft/util/math/Quaternion;getY()F
-
getZ
public float getZ()- Mappings:
Namespace Name Mixin selector official g
Lg;g()F
intermediary method_4923
Lnet/minecraft/class_1158;method_4923()F
named getZ
Lnet/minecraft/util/math/Quaternion;getZ()F
-
getW
public float getW()- Mappings:
Namespace Name Mixin selector official h
Lg;h()F
intermediary method_4924
Lnet/minecraft/class_1158;method_4924()F
named getW
Lnet/minecraft/util/math/Quaternion;getW()F
-
hamiltonProduct
- Mappings:
Namespace Name Mixin selector official a
Lg;a(Lg;)V
intermediary method_4925
Lnet/minecraft/class_1158;method_4925(Lnet/minecraft/class_1158;)V
named hamiltonProduct
Lnet/minecraft/util/math/Quaternion;hamiltonProduct(Lnet/minecraft/util/math/Quaternion;)V
-
scale
public void scale(float scale) - Mappings:
Namespace Name Mixin selector official a
Lg;a(F)V
intermediary method_22872
Lnet/minecraft/class_1158;method_22872(F)V
named scale
Lnet/minecraft/util/math/Quaternion;scale(F)V
-
conjugate
public void conjugate()- Mappings:
Namespace Name Mixin selector official i
Lg;i()V
intermediary method_4926
Lnet/minecraft/class_1158;method_4926()V
named conjugate
Lnet/minecraft/util/math/Quaternion;conjugate()V
-
set
public void set(float x, float y, float z, float w) - Mappings:
Namespace Name Mixin selector official a
Lg;a(FFFF)V
intermediary method_23758
Lnet/minecraft/class_1158;method_23758(FFFF)V
named set
Lnet/minecraft/util/math/Quaternion;set(FFFF)V
-
cos
private static float cos(float value) - Mappings:
Namespace Name Mixin selector official b
Lg;b(F)F
intermediary method_16003
Lnet/minecraft/class_1158;method_16003(F)F
named cos
Lnet/minecraft/util/math/Quaternion;cos(F)F
-
sin
private static float sin(float value) - Mappings:
Namespace Name Mixin selector official c
Lg;c(F)F
intermediary method_16002
Lnet/minecraft/class_1158;method_16002(F)F
named sin
Lnet/minecraft/util/math/Quaternion;sin(F)F
-
normalize
public void normalize()- Mappings:
Namespace Name Mixin selector official j
Lg;j()V
intermediary method_22873
Lnet/minecraft/class_1158;method_22873()V
named normalize
Lnet/minecraft/util/math/Quaternion;normalize()V
-
method_35822
- Mappings:
Namespace Name Mixin selector official a
Lg;a(Lg;F)V
intermediary method_35822
Lnet/minecraft/class_1158;method_35822(Lnet/minecraft/class_1158;F)V
named method_35822
Lnet/minecraft/util/math/Quaternion;method_35822(Lnet/minecraft/util/math/Quaternion;F)V
-
copy
- Mappings:
Namespace Name Mixin selector official k
Lg;k()Lg;
intermediary method_23695
Lnet/minecraft/class_1158;method_23695()Lnet/minecraft/class_1158;
named copy
Lnet/minecraft/util/math/Quaternion;copy()Lnet/minecraft/util/math/Quaternion;
-