Package | Description |
---|---|
org.synthclipse.core.math | |
org.synthclipse.scripting.core |
Modifier and Type | Field and Description |
---|---|
static Quaternion |
Quaternion.DIRECTION_Z |
static Quaternion |
Quaternion.IDENTITY
Represents the identity quaternion rotation (0, 0, 0, 1).
|
static Quaternion |
Quaternion.ZERO |
Modifier and Type | Method and Description |
---|---|
Quaternion |
Quaternion.add(Quaternion q)
add adds the values of this quaternion to those of the
parameter quaternion. |
Quaternion |
Quaternion.addLocal(Quaternion q)
add adds the values of this quaternion to those of the
parameter quaternion. |
Quaternion |
Quaternion.clone() |
Quaternion |
Quaternion.copy() |
Quaternion |
Quaternion.fromAngleAxis(float angle,
Vector3f axis)
fromAngleAxis sets this quaternion to the values specified
by an angle and an axis of rotation. |
Quaternion |
Quaternion.fromAngleNormalAxis(float angle,
Vector3f axis)
fromAngleNormalAxis sets this quaternion to the values
specified by an angle and a normalized axis of rotation. |
Quaternion |
Quaternion.fromAngles(float[] angles)
fromAngles builds a quaternion from the Euler rotation
angles (y,r,p). |
Quaternion |
Quaternion.fromAngles(float xAngle,
float yAngle,
float zAngle)
fromAngles builds a Quaternion from the Euler rotation
angles (x,y,z) aka (pitch, yaw, rall)). |
Quaternion |
Quaternion.fromAxes(Vector3f[] axis)
fromAxes creates a Quaternion that represents
the coordinate system defined by three axes. |
Quaternion |
Quaternion.fromAxes(Vector3f xAxis,
Vector3f yAxis,
Vector3f zAxis)
fromAxes creates a Quaternion that represents
the coordinate system defined by three axes. |
Quaternion |
Quaternion.fromRotationMatrix(float m00,
float m01,
float m02,
float m10,
float m11,
float m12,
float m20,
float m21,
float m22) |
Quaternion |
Quaternion.fromRotationMatrix(Matrix3f matrix)
fromRotationMatrix generates a quaternion from a supplied
matrix. |
Quaternion |
Quaternion.inverse()
inverse returns the inverse of this quaternion as a new
quaternion. |
Quaternion |
Quaternion.inverseLocal()
inverse calculates the inverse of this quaternion and
returns this quaternion after it is calculated. |
Quaternion |
Quaternion.mult(float scalar)
mult multiplies this quaternion by a parameter scalar. |
Quaternion |
Quaternion.mult(Quaternion q)
mult multiplies this quaternion by a parameter quaternion. |
Quaternion |
Quaternion.mult(Quaternion q,
Quaternion res)
mult multiplies this quaternion by a parameter quaternion. |
Quaternion |
Matrix4f.mult(Quaternion vec,
Quaternion store)
mult multiplies a quaternion about a matrix. |
Quaternion |
Quaternion.multLocal(float scalar)
mult multiplies this quaternion by a parameter scalar. |
Quaternion |
Quaternion.multLocal(float qx,
float qy,
float qz,
float qw)
Multiplies this Quaternion by the supplied quaternion.
|
Quaternion |
Quaternion.multLocal(Quaternion q)
Multiplies this Quaternion by the supplied quaternion.
|
Quaternion |
Quaternion.normalizeLocal()
normalize normalizes the current Quaternion . |
Quaternion |
Quaternion.opposite() |
Quaternion |
Quaternion.opposite(Quaternion store)
FIXME: This seems to have singularity type issues with angle == 0,
possibly others such as PI.
|
Quaternion |
Quaternion.oppositeLocal() |
Quaternion |
Quaternion.set(float x,
float y,
float z,
float w)
sets the data in a
Quaternion object from the given list of
parameters. |
Quaternion |
Quaternion.set(Quaternion q)
Sets the data in this
Quaternion object to be equal to the
passed Quaternion object. |
Quaternion |
Quaternion.slerp(Quaternion q1,
Quaternion q2,
float t)
slerp sets this quaternion's value as an interpolation
between two other quaternions. |
Quaternion |
Quaternion.subtract(Quaternion q)
subtract subtracts the values of the parameter quaternion
from those of this quaternion. |
Quaternion |
Quaternion.subtractLocal(Quaternion q)
subtract subtracts the values of the parameter quaternion
from those of this quaternion. |
Quaternion |
Matrix4f.toRotationQuat() |
Modifier and Type | Method and Description |
---|---|
Quaternion |
Quaternion.add(Quaternion q)
add adds the values of this quaternion to those of the
parameter quaternion. |
Quaternion |
Quaternion.addLocal(Quaternion q)
add adds the values of this quaternion to those of the
parameter quaternion. |
float |
Quaternion.dot(Quaternion q)
dot calculates and returns the dot product of this
quaternion with that of the parameter quaternion. |
Quaternion |
Quaternion.mult(Quaternion q)
mult multiplies this quaternion by a parameter quaternion. |
Quaternion |
Quaternion.mult(Quaternion q,
Quaternion res)
mult multiplies this quaternion by a parameter quaternion. |
Quaternion |
Matrix4f.mult(Quaternion vec,
Quaternion store)
mult multiplies a quaternion about a matrix. |
Quaternion |
Quaternion.multLocal(Quaternion q)
Multiplies this Quaternion by the supplied quaternion.
|
void |
Matrix4f.multLocal(Quaternion rotation) |
void |
Quaternion.nlerp(Quaternion q2,
float blend)
Sets the values of this quaternion to the nlerp from itself to q2 by
blend.
|
Quaternion |
Quaternion.opposite(Quaternion store)
FIXME: This seems to have singularity type issues with angle == 0,
possibly others such as PI.
|
Quaternion |
Quaternion.set(Quaternion q)
Sets the data in this
Quaternion object to be equal to the
passed Quaternion object. |
Matrix3f |
Matrix3f.set(Quaternion quaternion)
set defines the values of the matrix based on a supplied
Quaternion . |
void |
Matrix4f.setRotationQuaternion(Quaternion quat)
setRotationQuaternion builds a rotation from a
Quaternion . |
void |
Quaternion.slerp(Quaternion q2,
float changeAmnt)
Sets the values of this quaternion to the slerp from itself to q2 by
changeAmnt
|
Quaternion |
Quaternion.slerp(Quaternion q1,
Quaternion q2,
float t)
slerp sets this quaternion's value as an interpolation
between two other quaternions. |
Quaternion |
Quaternion.subtract(Quaternion q)
subtract subtracts the values of the parameter quaternion
from those of this quaternion. |
Quaternion |
Quaternion.subtractLocal(Quaternion q)
subtract subtracts the values of the parameter quaternion
from those of this quaternion. |
void |
Matrix4f.toRotationQuat(Quaternion q) |
Constructor and Description |
---|
Quaternion(Quaternion q)
Constructor instantiates a new
Quaternion object from an
existing quaternion, creating a copy. |
Quaternion(Quaternion q1,
Quaternion q2,
float interp)
Constructor instantiates a new
Quaternion object from an
interpolation between two other quaternions. |
Modifier and Type | Method and Description |
---|---|
Quaternion |
JSNative.newQuaternion()
Creates a new identity quaternion (
x = 0 , y = 0 , z = 0 , w = 1 ). |
Quaternion |
JSNative.newQuaternion(float x,
float y,
float z,
float w)
Creates a new quaternion.
|