Package com.mojang.math
Class Quaternion
java.lang.Object
com.mojang.math.Quaternion
-
Field Summary
-
Constructor Summary
ConstructorDescriptionQuaternion
(float p_80130_, float p_80131_, float p_80132_, boolean p_80133_) Quaternion
(float p_80125_, float p_80126_, float p_80127_, float p_80128_) Quaternion
(Quaternion p_80135_) Quaternion
(Vector3f p_80137_, float p_80138_, boolean p_80139_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
conj()
copy()
private static float
cos
(float p_80152_) boolean
static Quaternion
fromXYZ
(float p_175229_, float p_175230_, float p_175231_) static Quaternion
static Quaternion
fromXYZDegrees
(Vector3f p_175226_) static Quaternion
fromYXZ
(float p_175219_, float p_175220_, float p_175221_) int
hashCode()
float
i()
float
j()
float
k()
void
mul
(float p_80142_) void
mul
(Quaternion p_80149_) void
float
r()
void
set
(float p_80144_, float p_80145_, float p_80146_, float p_80147_) private static float
sin
(float p_80155_) void
slerp
(Quaternion p_175223_, float p_175224_) toString()
toXYZ()
toYXZ()
-
Field Details
-
ONE
-
i
private float i -
j
private float j -
k
private float k -
r
private float r
-
-
Constructor Details
-
Quaternion
public Quaternion(float p_80125_, float p_80126_, float p_80127_, float p_80128_) -
Quaternion
-
Quaternion
public Quaternion(float p_80130_, float p_80131_, float p_80132_, boolean p_80133_) -
Quaternion
-
-
Method Details
-
fromYXZ
-
fromXYZDegrees
-
fromXYZ
-
fromXYZ
-
toXYZ
-
toXYZDegrees
-
toYXZ
-
toYXZDegrees
-
equals
-
hashCode
public int hashCode() -
toString
-
i
public float i() -
j
public float j() -
k
public float k() -
r
public float r() -
mul
-
mul
public void mul(float p_80142_) -
conj
public void conj() -
set
public void set(float p_80144_, float p_80145_, float p_80146_, float p_80147_) -
cos
private static float cos(float p_80152_) -
sin
private static float sin(float p_80155_) -
normalize
public void normalize() -
slerp
-
copy
-