javax.vecmath
public class Quat4f extends Tuple4f implements Serializable
Constructor Summary | |
---|---|
Quat4f(float x, float y, float z, float w)
Constructs and initializes a Quat4f from the specified xyzw coordinates. | |
Quat4f(float[] q)
Constructs and initializes a Quat4f from the array of length 4. | |
Quat4f(Quat4f q1)
Constructs and initializes a Quat4f from the specified Quat4f. | |
Quat4f(Quat4d q1)
Constructs and initializes a Quat4f from the specified Quat4d. | |
Quat4f(Tuple4d t1)
Constructs and initializes a Quat4f from the specified Tuple4d. | |
Quat4f(Tuple4f t1)
Constructs and initializes a Quat4f from the specified Tuple4f. | |
Quat4f()
Constructs and initializes a Quat4f to (0,0,0,0). |
Method Summary | |
---|---|
void | conjugate(Quat4f q1)
Sets the value of this quaternion to the conjugate of quaternion q1. |
void | conjugate()
Negate the value of of each of this quaternion's x,y,z coordinates
in place. |
void | interpolate(Quat4f q1, double alpha)
Performs a great circle interpolation between this quaternion and the
quaternion parameter and places the result into this quaternion. |
void | interpolate(Quat4f q1, Quat4f q2, double alpha)
Performs a great circle interpolation between quaternion q1 and
quaternion q2 and places the result into this quaternion. |
void | inverse(Quat4f q1)
Sets the value of this quaternion to quaternion inverse of quaternion q1. |
void | inverse()
Sets the value of this quaternion to the quaternion inverse of itself. |
void | mul(Quat4f q1, Quat4f q2)
Sets the value of this quaternion to the quaternion product of
quaternions q1 and q2 (this = q1 * q2).
|
void | mul(Quat4f q1)
Sets the value of this quaternion to the quaternion product of
itself and q1 (this = this * q1). |
void | mulInverse(Quat4f q1, Quat4f q2)
Multiplies quaternion q1 by the inverse of quaternion q2 and places
the value into this quaternion. |
void | mulInverse(Quat4f q1)
Multiplies this quaternion by the inverse of quaternion q1 and places
the value into this quaternion. |
void | normalize(Quat4f q1)
Sets the value of this quaternion to the normalized value
of quaternion q1. |
void | normalize()
Normalizes the value of this quaternion in place. |
void | set(Matrix4f m1)
Sets the value of this quaternion to the rotational component of
the passed matrix. |
void | set(Matrix4d m1)
Sets the value of this quaternion to the rotational component of
the passed matrix. |
void | set(Matrix3f m1)
Sets the value of this quaternion to the rotational component of
the passed matrix. |
void | set(Matrix3d m1)
Sets the value of this quaternion to the rotational component of
the passed matrix. |
void | set(AxisAngle4f a1)
Sets the value of this quaternion to the equivalent rotation of teh
AxisAngle argument. |
void | set(AxisAngle4d a1)
Sets the value of this quaternion to the equivalent rotation of teh
AxisAngle argument. |
Parameters: x the x coordinate y the y coordinate z the z coordinate w the w scalar component
Parameters: v the array of length 4 containing xyzw in order
Parameters: q1 the Quat4f containing the initialization x y z w data
Parameters: q1 the Quat4d containing the initialization x y z w data
Parameters: t1 the Tuple4d containing the initialization x y z w data
Parameters: t1 the Tuple4f containing the initialization x y z w data
Parameters: q1 the source vector
Parameters: q1 the other quaternion alpha the alpha interpolation parameter
Parameters: q1 the first quaternion q2 the second quaternion alpha the alpha interpolation parameter
Parameters: q1 the quaternion to be inverted
Parameters: q1 the first quaternion q2 the second quaternion
Parameters: q1 the other quaternion
Parameters: q1 the left quaternion q2 the right quaternion
Parameters: q1 the other quaternion
Parameters: q1 the quaternion to be normalized.
Parameters: m1 the matrix4f
Parameters: m1 the matrix4d
Parameters: m1 the matrix3f
Parameters: m1 the matrix3d
Parameters: a1 the axis-angle
Parameters: a1 the axis-angle