|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.vecmath.Tuple4d | +--javax.vecmath.Quat4d
A 4-element quaternion represented by double precision floating point x,y,z,w coordinates. The quaternion is always normalized.
Field Summary |
Fields inherited from class javax.vecmath.Tuple4d |
w, x, y, z |
Constructor Summary | |
Quat4d()
Constructs and initializes a Quat4d to (0,0,0,0). |
|
Quat4d(double[] q)
Constructs and initializes a Quat4d from the array of length 4. |
|
Quat4d(double x,
double y,
double z,
double w)
Constructs and initializes a Quat4d from the specified xyzw coordinates. |
|
Quat4d(Quat4d q1)
Constructs and initializes a Quat4d from the specified Quat4d. |
|
Quat4d(Quat4f q1)
Constructs and initializes a Quat4d from the specified Quat4f. |
|
Quat4d(Tuple4d t1)
Constructs and initializes a Quat4d from the specified Tuple4d. |
|
Quat4d(Tuple4f t1)
Constructs and initializes a Quat4d from the specified Tuple4f. |
Method Summary | |
void |
conjugate()
Negate the value of of each of this quaternion's x,y,z coordinates in place. |
void |
conjugate(Quat4d q1)
Sets the value of this quaternion to the conjugate of quaternion q1. |
void |
interpolate(Quat4d q1,
double alpha)
Performs a great circle interpolation between this quaternion and the quaternion parameter and places the result into this quaternion. |
void |
interpolate(Quat4d q1,
Quat4d q2,
double alpha)
Performs a great circle interpolation between quaternion q1 and quaternion q2 and places the result into this quaternion. |
void |
inverse()
Sets the value of this quaternion to the quaternion inverse of itself. |
void |
inverse(Quat4d q1)
Sets the value of this quaternion to quaternion inverse of quaternion q1. |
void |
mul(Quat4d q1)
Sets the value of this quaternion to the quaternion product of itself and q1 (this = this * q1). |
void |
mul(Quat4d q1,
Quat4d q2)
Sets the value of this quaternion to the quaternion product of quaternions q1 and q2 (this = q1 * q2). |
void |
mulInverse(Quat4d q1)
Multiplies this quaternion by the inverse of quaternion q1 and places the value into this quaternion. |
void |
mulInverse(Quat4d q1,
Quat4d q2)
Multiplies quaternion q1 by the inverse of quaternion q2 and places the value into this quaternion. |
void |
normalize()
Normalizes the value of this quaternion in place. |
void |
normalize(Quat4d q1)
Sets the value of this quaternion to the normalized value of quaternion q1. |
void |
set(AxisAngle4d a)
Sets the value of this quaternion to the equivalent rotation of the AxisAngle argument. |
void |
set(AxisAngle4f a)
Sets the value of this quaternion to the equivalent rotation of the AxisAngle argument. |
void |
set(Matrix3d 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(Matrix4d m1)
Sets the value of this quaternion to the rotational component of the passed matrix. |
void |
set(Matrix4f m1)
Sets the value of this quaternion to the rotational component of the passed matrix. |
Methods inherited from class javax.vecmath.Tuple4d |
absolute, absolute, add, add, clamp, clamp, clamp, clamp, clampMax, clampMax, clampMax, clampMax, clampMin, clampMin, clampMin, clampMin, clone, epsilonEquals, equals, equals, get, get, hashCode, interpolate, interpolate, interpolate, interpolate, negate, negate, scale, scale, scaleAdd, scaleAdd, scaleAdd, set, set, set, set, sub, sub, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Quat4d(double x, double y, double z, double w)
x
- the x coordinatey
- the y coordinatez
- the z coordinatew
- the w scalar componentpublic Quat4d(double[] q)
q
- the array of length 4 containing xyzw in orderpublic Quat4d(Quat4d q1)
q1
- the Quat4d containing the initialization x y z w datapublic Quat4d(Quat4f q1)
q1
- the Quat4f containing the initialization x y z w datapublic Quat4d(Tuple4f t1)
t1
- the Tuple4f containing the initialization x y z w datapublic Quat4d(Tuple4d t1)
t1
- the Tuple4d containing the initialization x y z w datapublic Quat4d()
Method Detail |
public final void conjugate(Quat4d q1)
q1
- the source vectorpublic final void conjugate()
public final void mul(Quat4d q1, Quat4d q2)
q1
- the first quaternionq2
- the second quaternionpublic final void mul(Quat4d q1)
q1
- the other quaternionpublic final void mulInverse(Quat4d q1, Quat4d q2)
q1
- the first quaternionq2
- the second quaternionpublic final void mulInverse(Quat4d q1)
q1
- the other quaternionpublic final void inverse(Quat4d q1)
q1
- the quaternion to be invertedpublic final void inverse()
public final void normalize(Quat4d q1)
q1
- the quaternion to be normalized.public final void normalize()
public final void set(Matrix4f m1)
m1
- the matrix4fpublic final void set(Matrix4d m1)
m1
- the matrix4dpublic final void set(Matrix3f m1)
m1
- the matrix3fpublic final void set(Matrix3d m1)
m1
- the matrix3dpublic final void set(AxisAngle4f a)
a
- the AxisAngle to be emulatedpublic final void set(AxisAngle4d a)
a
- the AxisAngle to be emulatedpublic final void interpolate(Quat4d q1, double alpha)
q1
- the other quaternionalpha
- the alpha interpolation parameterpublic final void interpolate(Quat4d q1, Quat4d q2, double alpha)
q1
- the first quaternionq2
- the second quaternionalpha
- the alpha interpolation parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |