All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.vecmath.Quat4d

java.lang.Object
   |
   +----java.vecmath.Tuple4d
           |
           +----java.vecmath.Quat4d

public class Quat4d
extends Tuple4d
A 4 element quaternion represented by single precision floating point x,y,z,w coordinates.


Constructor Index

 o Quat4d()
Constructs and initializes a Quat4d to (0,0,0,0).
 o Quat4d(double, double, double, double)
Constructs and initializes a Quat4d from the specified xyzw coordinates.
 o Quat4d(double[])
Constructs and initializes a Quat4d from the array of length 4.
 o Quat4d(Quat4d)
Constructs and initializes a Quat4d from the specified Quat4d.
 o Quat4d(Quat4f)
Constructs and initializes a Quat4d from the specified Quat4f.

Method Index

 o conjugate()
Negate the value of of each of this quaternion's x,y,z coordinates in place.
 o conjugate(Quat4d)
Sets the value of this quaternion to the conjugate of quaternion q1.
 o interpolate(Quat4d, double)
Performs a great circle interpolation between this quaternion and the quaternion parameter and places the result into this quaternion.
 o interpolate(Quat4d, Quat4d, double)
Performs a great circle interpolation between quaternion q1 and quaternion q2 and places the result into this quaternion.
 o inverse()
Sets the value of this quaternion to the quaternion inverse of itself.
 o inverse(Quat4d)
Sets the value of this quaternion to quaternion inverse of quaternion q1.
 o mul(Quat4d)
Sets the value of this quaternion to the quaternion product of itself and q1 (this = this * q1).
 o mul(Quat4d, Quat4d)
Sets the value of this quaternion to the quaternion product of quaternions q1 and q2 (this = q1 * q2).
 o mulInverse(Quat4d)
Multiplies this quaternion by the inverse of quaternion q1 and places the value into this quaternion.
 o mulInverse(Quat4d, Quat4d)
Multiplies quaternion q1 by the inverse of quaternion q2 and places the value into this quaternion.
 o normalize()
Normalizes the value of this quaternion in place.
 o normalize(Quat4d)
Sets the value of this quaternion to the normalized value of quaternion q1.
 o set(AxisAngle4d)
Sets the value of this quaternion to the equivalent rotation of the AxisAngle argument.
 o set(AxisAngle4f)
Sets the value of this quaternion to the equivalent rotation of the AxisAngle argument.
 o set(Matrix3d)
Sets the value of this quaternion to the rotational component of the passed matrix.
 o set(Matrix3f)
Sets the value of this quaternion to the rotational component of the passed matrix.
 o set(Matrix4d)
Sets the value of this quaternion to the rotational component of the passed matrix.
 o set(Matrix4f)
Sets the value of this quaternion to the rotational component of the passed matrix.

Constructors

 o Quat4d
 public Quat4d(double x,
               double y,
               double z,
               double w)
Constructs and initializes a Quat4d from the specified xyzw coordinates.

Parameters:
x - the x coordinate
y - the y coordinate
z - the z coordinate
w - the w scalar component
 o Quat4d
 public Quat4d(double q[])
Constructs and initializes a Quat4d from the array of length 4.

Parameters:
v - the array of length 4 containing xyzw in order
 o Quat4d
 public Quat4d(Quat4d q1)
Constructs and initializes a Quat4d from the specified Quat4d.

Parameters:
q1 - the Quat4d containing the initialization x y z w data
 o Quat4d
 public Quat4d(Quat4f q1)
Constructs and initializes a Quat4d from the specified Quat4f.

Parameters:
q1 - the Quat4f containing the initialization x y z w data
 o Quat4d
 public Quat4d()
Constructs and initializes a Quat4d to (0,0,0,0).

Methods

 o conjugate
 public final void conjugate(Quat4d q1)
Sets the value of this quaternion to the conjugate of quaternion q1.

Parameters:
q1 - the source vector
 o conjugate
 public final void conjugate()
Negate the value of of each of this quaternion's x,y,z coordinates in place.

 o mul
 public final void mul(Quat4d q1,
                       Quat4d q2)
Sets the value of this quaternion to the quaternion product of quaternions q1 and q2 (this = q1 * q2). Note that this is safe for aliasing (e.g. this can be q1 or q2).

Parameters:
q1 - the first quaternion
q2 - the second quaternion
 o mul
 public final void mul(Quat4d q1)
Sets the value of this quaternion to the quaternion product of itself and q1 (this = this * q1).

Parameters:
q1 - the other quaternion
 o mulInverse
 public final void mulInverse(Quat4d q1,
                              Quat4d q2)
Multiplies quaternion q1 by the inverse of quaternion q2 and places the value into this quaternion. The value of both argument quaternions is preservered (this = q1 * q2^-1).

Parameters:
q1 - the other quaternion
 o mulInverse
 public final void mulInverse(Quat4d q1)
Multiplies this quaternion by the inverse of quaternion q1 and places the value into this quaternion. The value of the argument quaternion is preserved (this = this * q^-1).

Parameters:
q1 - the other quaternion
 o inverse
 public final void inverse(Quat4d q1)
Sets the value of this quaternion to quaternion inverse of quaternion q1.

Parameters:
q1 - the quaternion to be inverted
 o inverse
 public final void inverse()
Sets the value of this quaternion to the quaternion inverse of itself.

 o normalize
 public final void normalize(Quat4d q1)
Sets the value of this quaternion to the normalized value of quaternion q1.

Parameters:
q1 - the quaternion to be normalized.
 o normalize
 public final void normalize()
Normalizes the value of this quaternion in place.

 o set
 public final void set(Matrix4f m1)
Sets the value of this quaternion to the rotational component of the passed matrix.

Parameters:
m1 - the matrix4f
 o set
 public final void set(Matrix4d m1)
Sets the value of this quaternion to the rotational component of the passed matrix.

Parameters:
m1 - the matrix4d
 o set
 public final void set(Matrix3f m1)
Sets the value of this quaternion to the rotational component of the passed matrix.

Parameters:
m1 - the matrix3f
 o set
 public final void set(Matrix3d m1)
Sets the value of this quaternion to the rotational component of the passed matrix.

Parameters:
m1 - the matrix3d
 o set
 public final void set(AxisAngle4f a)
Sets the value of this quaternion to the equivalent rotation of the AxisAngle argument.

Parameters:
a - AxisAngle to be emulated
 o set
 public final void set(AxisAngle4d a)
Sets the value of this quaternion to the equivalent rotation of the AxisAngle argument.

Parameters:
a - AxisAngle to be emulated
 o interpolate
 public final 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.

Parameters:
q1 - the other quaternion
alpha - the alpha interpolation parameter
 o interpolate
 public final 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.

Parameters:
q1 - the first quaternion
q1 - the second quaternion
alpha - the alpha interpolation parameter

All Packages  Class Hierarchy  This Package  Previous  Next  Index