Package net.minecraft.util.math.vector
Class Quaternion
java.lang.Object
net.minecraft.util.math.vector.Quaternion
-
Field Summary
-
Constructor Summary
ConstructorDescriptionQuaternion
(float p_i48102_1_, float p_i48102_2_, float p_i48102_3_, boolean p_i48102_4_) Quaternion
(float p_i48100_1_, float p_i48100_2_, float p_i48100_3_, float p_i48100_4_) Quaternion
(Quaternion p_i48103_1_) Quaternion
(Vector3f p_i48101_1_, float p_i48101_2_, boolean p_i48101_3_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
conj()
copy()
private static float
cos
(float p_214904_0_) boolean
int
hashCode()
float
i()
float
j()
float
k()
void
mul
(float p_227065_1_) void
mul
(Quaternion p_195890_1_) void
float
r()
void
set
(float p_227066_1_, float p_227066_2_, float p_227066_3_, float p_227066_4_) private static float
sin
(float p_214903_0_) toString()
-
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_i48100_1_, float p_i48100_2_, float p_i48100_3_, float p_i48100_4_) -
Quaternion
-
Quaternion
public Quaternion(float p_i48102_1_, float p_i48102_2_, float p_i48102_3_, boolean p_i48102_4_) -
Quaternion
-
-
Method Details
-
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_227065_1_) -
conj
public void conj() -
set
public void set(float p_227066_1_, float p_227066_2_, float p_227066_3_, float p_227066_4_) -
cos
private static float cos(float p_214904_0_) -
sin
private static float sin(float p_214903_0_) -
normalize
public void normalize() -
copy
-