public final class Quaternion extends Object
Modifier and Type | Field and Description |
---|---|
static Quaternion |
IDENTITY |
private float |
w |
private float |
x |
private float |
y |
private float |
z |
Constructor and Description |
---|
Quaternion(float x,
float y,
float z,
boolean degrees) |
Quaternion(float x,
float y,
float z,
float w) |
Quaternion(Quaternion other) |
Quaternion(Vector3f axis,
float rotationAngle,
boolean degrees) |
Modifier and Type | Method and 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() |
public static final Quaternion IDENTITY
private float x
private float y
private float z
private float w
public Quaternion(float x, float y, float z, float w)
public Quaternion(Vector3f axis, float rotationAngle, boolean degrees)
@Environment(value=CLIENT) public Quaternion(float x, float y, float z, boolean degrees)
public Quaternion(Quaternion other)
public float getX()
public float getY()
public float getZ()
public float getW()
public void hamiltonProduct(Quaternion other)
@Environment(value=CLIENT) public void scale(float scale)
public void conjugate()
@Environment(value=CLIENT) public void set(float x, float y, float z, float w)
private static float cos(float value)
private static float sin(float value)
@Environment(value=CLIENT) public void normalize()
@Environment(value=CLIENT) public Quaternion copy()