| Modifier and Type | Field and Description |
|---|---|
| private static final long | |
| public float | |
| public float | |
| public float | |
| public float |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static float | Returns: left dot rightThe LHS quat left, Quaternion The RHS quat right)The dot product of two quaternions |
| public float | |
| public final float | |
| public final float | |
| public float | |
| public float | Returns: the length squared of the quaternionImplements abstract org. Implements org. |
| public Vector | load(FloatBuffer
The buffer to load it from, at the current position buf)Implements abstract org. |
| public static Quaternion | mul(Quaternion
the first quaternion left, Quaternion the second quaternion right, Quaternion dest)Sets the value of this quaternion to the quaternion product of quaternions left and right (this = left * right). |
| public static Quaternion | mulInverse(Quaternion
the left quaternion left, Quaternion the right quaternion right, Quaternion dest)Multiplies quaternion left by the inverse of quaternion right and places the value into this quaternion. |
| public Quaternion | negate(Quaternion
The quaternion which should be set to the conjugate of this
quaternion dest)Calculate the conjugate of this quaternion and put it into the given one |
| public static Quaternion | negate(Quaternion
The source quaternion src, Quaternion The quaternion which should be set to the conjugate of this
quaternion dest)Calculate the conjugate of this quaternion and put it into the given one |
| public Vector | negate()
Implements abstract org. |
| public static Quaternion | Returns: The normalised quaternionThe source quaternion src, Quaternion The destination quaternion, or null if a new quaternion is to be
created dest)Normalise the source quaternion and place the result in another quaternion. |
| public Quaternion | Returns: the normalised quaternionThe destination quaternion, or null if a new quaternion is to be
created dest)Normalise this quaternion and place the result in another quaternion. |
| public Vector | scale(float
The scale factor scale)Implements abstract org. |
| public static Quaternion | Returns: The scaled quaternionThe amount to scale by scale, Quaternion The source quaternion src, Quaternion The destination quaternion, or null if a new quaternion is to be created dest)Scale the source quaternion by scale and put the result in the destination |
| public void | |
| public void | |
| public void | |
| public Quaternion | |
| public final void | setFromAxisAngle(Vector4f
the axis-angle: (x,y,z) is the axis and w is the angle a1)Sets the value of this quaternion to the equivalent rotation of the Axis-Angle argument. |
| private Quaternion | setFromMat(float m00, float m01, float m02, float m10, float m11, float m12, float m20, float m21, float m22)
Private method to perform the matrix-to-quaternion conversion |
| public final Quaternion | Returns: thisThe matrix m)Sets the value of this quaternion using the rotational component of the passed matrix. |
| public static Quaternion | Returns: qThe source matrix m, Quaternion The destination quaternion, or null if a new quaternion is to be created q)Sets the value of the source quaternion using the rotational component of the passed matrix. |
| public final Quaternion | setFromMatrix(Matrix3f
The source matrix m)Sets the value of this quaternion using the rotational component of the passed matrix. |
| public static Quaternion | Returns: qThe source matrix m, Quaternion The destination quaternion, or null if a new quaternion is to be created q)Sets the value of the source quaternion using the rotational component of the passed matrix. |
| public Quaternion | |
| public static Quaternion | Returns: qThe quaternion q)Set the given quaternion to the multiplication identity. |
| public void | |
| public final void | |
| public final void | |
| public void | |
| public Vector | store(FloatBuffer
The buffer to store it in, at the current position buf)Implements abstract org. Implements org. |
| public String |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| w | back to summary |
|---|---|
| public float w | |
| x | back to summary |
|---|---|
| public float x | |
| y | back to summary |
|---|---|
| public float y | |
| z | back to summary |
|---|---|
| public float z | |
| Quaternion | back to summary |
|---|---|
| public Quaternion() C'tor. The quaternion will be initialized to the identity. | |
| Quaternion | back to summary |
|---|---|
| public Quaternion(ReadableVector4f src) C'tor | |
| Quaternion | back to summary |
|---|---|
| public Quaternion(float x, float y, float z, float w) C'tor | |
| dot | back to summary |
|---|---|
| public static float dot(Quaternion left, Quaternion right) The dot product of two quaternions
| |
| getW | back to summary |
|---|---|
| public float getW() Implements org.
| |
| getX | back to summary |
|---|---|
| public final float getX() Implements org.
| |
| getY | back to summary |
|---|---|
| public final float getY() Implements org.
| |
| getZ | back to summary |
|---|---|
| public float getZ() Implements org.
| |
| lengthSquared | back to summary |
|---|---|
| public float lengthSquared() Implements abstract org. Implements org.
| |
| load | back to summary |
|---|---|
| public Vector load(FloatBuffer buf) Implements abstract org. Doc from org. Load this vector from a FloatBuffer
| |
| mul | back to summary |
|---|---|
| public static Quaternion mul(Quaternion left, Quaternion right, Quaternion dest) Sets the value of this quaternion to the quaternion product of quaternions left and right (this = left * right). Note that this is safe for aliasing (e.g. this can be left or right).
| |
| mulInverse | back to summary |
|---|---|
| public static Quaternion mulInverse(Quaternion left, Quaternion right, Quaternion dest) Multiplies quaternion left by the inverse of quaternion right and places the value into this quaternion. The value of both argument quaternions is preservered (this = left * right^-1).
| |
| negate | back to summary |
|---|---|
| public Quaternion negate(Quaternion dest) Calculate the conjugate of this quaternion and put it into the given one
| |
| negate | back to summary |
|---|---|
| public static Quaternion negate(Quaternion src, Quaternion dest) Calculate the conjugate of this quaternion and put it into the given one
| |
| negate | back to summary |
|---|---|
| public Vector negate() Implements abstract org. Calculate the conjugate of this quaternion
| |
| normalise | back to summary |
|---|---|
| public static Quaternion normalise(Quaternion src, Quaternion dest) Normalise the source quaternion and place the result in another quaternion.
| |
| normalise | back to summary |
|---|---|
| public Quaternion normalise(Quaternion dest) Normalise this quaternion and place the result in another quaternion.
| |
| scale | back to summary |
|---|---|
| public Vector scale(float scale) Implements abstract org. Doc from org. Scale this vector
| |
| scale | back to summary |
|---|---|
| public static Quaternion scale(float scale, Quaternion src, Quaternion dest) Scale the source quaternion by scale and put the result in the destination
| |
| set | back to summary |
|---|---|
| public void set(float x, float y) | |
| set | back to summary |
|---|---|
| public void set(float x, float y, float z) | |
| set | back to summary |
|---|---|
| public void set(float x, float y, float z, float w) | |
| set | back to summary |
|---|---|
| public Quaternion set(ReadableVector4f src) Load from another Vector4f
| |
| setFromAxisAngle | back to summary |
|---|---|
| public final void setFromAxisAngle(Vector4f a1) Sets the value of this quaternion to the equivalent rotation of the Axis-Angle argument.
| |
| setFromMat | back to summary |
|---|---|
| private Quaternion setFromMat(float m00, float m01, float m02, float m10, float m11, float m12, float m20, float m21, float m22) Private method to perform the matrix-to-quaternion conversion | |
| setFromMatrix | back to summary |
|---|---|
| public final Quaternion setFromMatrix(Matrix4f m) Sets the value of this quaternion using the rotational component of the passed matrix.
| |
| setFromMatrix | back to summary |
|---|---|
| public static Quaternion setFromMatrix(Matrix4f m, Quaternion q) Sets the value of the source quaternion using the rotational component of the passed matrix.
| |
| setFromMatrix | back to summary |
|---|---|
| public final Quaternion setFromMatrix(Matrix3f m) Sets the value of this quaternion using the rotational component of the passed matrix.
| |
| setFromMatrix | back to summary |
|---|---|
| public static Quaternion setFromMatrix(Matrix3f m, Quaternion q) Sets the value of the source quaternion using the rotational component of the passed matrix.
| |
| setIdentity | back to summary |
|---|---|
| public Quaternion setIdentity() Set this quaternion to the multiplication identity.
| |
| setIdentity | back to summary |
|---|---|
| public static Quaternion setIdentity(Quaternion q) Set the given quaternion to the multiplication identity.
| |
| setW | back to summary |
|---|---|
| public void setW(float w) Set W | |
| setX | back to summary |
|---|---|
| public final void setX(float x) Set X | |
| setY | back to summary |
|---|---|
| public final void setY(float y) Set Y | |
| setZ | back to summary |
|---|---|
| public void setZ(float z) Set Z | |
| store | back to summary |
|---|---|
| public Vector store(FloatBuffer buf) Implements abstract org. Implements org. Doc from org. Store this vector in a FloatBuffer
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |