Package net.minecraft.util.math.vector
Class Quaternion
- java.lang.Object
-
- net.minecraft.util.math.vector.Quaternion
-
public final class Quaternion extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Quaternion(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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
conj()
Quaternion
copy()
private static float
cos(float p_214904_0_)
boolean
equals(java.lang.Object p_equals_1_)
int
hashCode()
float
i()
float
j()
float
k()
void
mul(float p_227065_1_)
void
mul(Quaternion p_195890_1_)
void
normalize()
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_)
java.lang.String
toString()
-
-
-
Field Detail
-
ONE
public static final Quaternion ONE
-
i
private float i
-
j
private float j
-
k
private float k
-
r
private float r
-
-
Constructor Detail
-
Quaternion
public Quaternion(float p_i48100_1_, float p_i48100_2_, float p_i48100_3_, float p_i48100_4_)
-
Quaternion
public Quaternion(Vector3f p_i48101_1_, float p_i48101_2_, boolean p_i48101_3_)
-
Quaternion
public Quaternion(float p_i48102_1_, float p_i48102_2_, float p_i48102_3_, boolean p_i48102_4_)
-
Quaternion
public Quaternion(Quaternion p_i48103_1_)
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object p_equals_1_)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
i
public float i()
-
j
public float j()
-
k
public float k()
-
r
public float r()
-
mul
public void mul(Quaternion p_195890_1_)
-
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
public Quaternion copy()
-
-