Package net.minecraft.util.math
Class Quaternion
java.lang.Object
net.minecraft.util.math.Quaternion
public final class Quaternion extends Object
- Mappings:
Namespace Name official d
intermediary net/minecraft/class_1158
named net/minecraft/util/math/Quaternion
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Quaternion(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 Type Method Description void
conjugate()
Quaternion
copy()
private static float
cos(float value)
boolean
equals(Object o)
float
getW()
float
getX()
float
getY()
float
getZ()
void
hamiltonProduct(Quaternion other)
int
hashCode()
void
normalize()
void
scale(float scale)
void
set(float x, float y, float z, float w)
private static float
sin(float value)
String
toString()
-
Field Details
-
IDENTITY
- Mappings:
Namespace Name Mixin selector official a
Ld;a:Ld;
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
Ld;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
Ld;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
Ld;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
Ld;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>
Ld;<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>
Ld;<init>(Lg;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
- Mappings:
Namespace Name Mixin selector official <init>
Ld;<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>
Ld;<init>(Ld;)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
-
equals
-
hashCode
public int hashCode() -
toString
-
getX
public float getX()- Mappings:
Namespace Name Mixin selector official a
Ld;a()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 b
Ld;b()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 c
Ld;c()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 d
Ld;d()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
Ld;a(Ld;)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
- Mappings:
Namespace Name Mixin selector official a
Ld;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 e
Ld;e()V
intermediary method_4926
Lnet/minecraft/class_1158;method_4926()V
named conjugate
Lnet/minecraft/util/math/Quaternion;conjugate()V
-
set
- Mappings:
Namespace Name Mixin selector official a
Ld;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
Ld;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
Ld;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
- Mappings:
Namespace Name Mixin selector official f
Ld;f()V
intermediary method_22873
Lnet/minecraft/class_1158;method_22873()V
named normalize
Lnet/minecraft/util/math/Quaternion;normalize()V
-
copy
- Mappings:
Namespace Name Mixin selector official g
Ld;g()Ld;
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;
-