All Packages Class Hierarchy This Package Previous Next Index
Class javax.vecmath.Quat4f
java.lang.Object
|
+----javax.vecmath.Tuple4f
|
+----javax.vecmath.Quat4f
- public class Quat4f
- extends javax.vecmath.Tuple4f
- implements java.io.Serializable
A 4 element quaternion represented by single precision floating
point x,y,z,w coordinates.
- Version:
- specification 1.1, implementation $Revision: 1.8 $, $Date: 1999/03/11 00:17:50 $
- Author:
- Kenji hiranabe
-
Quat4f()
- Constructs and initializes a Quat4f to (0,0,0,0).
-
Quat4f(float, float, float, float)
- Constructs and initializes a Quat4f from the specified xyzw coordinates.
-
Quat4f(float[])
- Constructs and initializes a Quat4f from the array of length 4.
-
Quat4f(Quat4d)
- Constructs and initializes a Quat4f from the specified Quat4d.
-
Quat4f(Quat4f)
- Constructs and initializes a Quat4f from the specified Quat4f.
-
Quat4f(Tuple4d)
- Constructs and initializes a Quat4f from the specified Tuple4d.
-
Quat4f(Tuple4f)
- Constructs and initializes a Quat4f from the specified Tuple4f.
-
conjugate()
- Negate the value of of each of this quaternion's x,y,z coordinates
in place.
-
conjugate(Quat4f)
- Sets the value of this quaternion to the conjugate of quaternion q1.
-
interpolate(Quat4f, double)
- Performs a great circle interpolation between this quaternion and the
quaternion parameter and places the result into this quaternion.
-
interpolate(Quat4f, Quat4f, double)
- Performs a great circle interpolation between quaternion q1 and
quaternion q2 and places the result into this quaternion.
-
inverse()
- Sets the value of this quaternion to the quaternion inverse of itself.
-
inverse(Quat4f)
- Sets the value of this quaternion to quaternion inverse of quaternion q1.
-
mul(Quat4f)
- Sets the value of this quaternion to the quaternion product of
itself and q1 (this = this * q1).
-
mul(Quat4f, Quat4f)
- Sets the value of this quaternion to the quaternion product of
quaternions q1 and q2 (this = q1 * q2).
-
mulInverse(Quat4f)
- Multiplies this quaternion by the inverse of quaternion q1 and places
the value into this quaternion.
-
mulInverse(Quat4f, Quat4f)
-
Multiplies quaternion q1 by the inverse of quaternion q2 and places
the value into this quaternion.
-
normalize()
- Normalizes the value of this quaternion in place.
-
normalize(Quat4f)
- Sets the value of this quaternion to the normalized value
of quaternion q1.
-
set(AxisAngle4d)
- Sets the value of this quaternion to the equivalent rotation of teh
AxisAngle argument.
-
set(AxisAngle4f)
- Sets the value of this quaternion to the equivalent rotation of teh
AxisAngle argument.
-
set(Matrix3d)
- Sets the value of this quaternion to the rotational component of
the passed matrix.
-
set(Matrix3f)
- Sets the value of this quaternion to the rotational component of
the passed matrix.
-
set(Matrix4d)
- Sets the value of this quaternion to the rotational component of
the passed matrix.
-
set(Matrix4f)
- Sets the value of this quaternion to the rotational component of
the passed matrix.
Quat4f
public Quat4f(float x,
float y,
float z,
float w)
- Constructs and initializes a Quat4f from the specified xyzw coordinates.
- Parameters:
- x - the x coordinate
- y - the y coordinate
- z - the z coordinate
- w - the w scalar component
Quat4f
public Quat4f(float q[])
- Constructs and initializes a Quat4f from the array of length 4.
- Parameters:
- v - the array of length 4 containing xyzw in order
Quat4f
public Quat4f(javax.vecmath.Quat4f q1)
- Constructs and initializes a Quat4f from the specified Quat4f.
- Parameters:
- q1 - the Quat4f containing the initialization x y z w data
Quat4f
public Quat4f(javax.vecmath.Quat4d q1)
- Constructs and initializes a Quat4f from the specified Quat4d.
- Parameters:
- q1 - the Quat4d containing the initialization x y z w data
Quat4f
public Quat4f(javax.vecmath.Tuple4d t1)
- Constructs and initializes a Quat4f from the specified Tuple4d.
- Parameters:
- t1 - the Tuple4d containing the initialization x y z w data
Quat4f
public Quat4f(javax.vecmath.Tuple4f t1)
- Constructs and initializes a Quat4f from the specified Tuple4f.
- Parameters:
- t1 - the Tuple4f containing the initialization x y z w data
Quat4f
public Quat4f()
- Constructs and initializes a Quat4f to (0,0,0,0).
conjugate
public final void conjugate(javax.vecmath.Quat4f q1)
- Sets the value of this quaternion to the conjugate of quaternion q1.
- Parameters:
- q1 - the source vector
conjugate
public final void conjugate()
- Negate the value of of each of this quaternion's x,y,z coordinates
in place.
mul
public final void mul(javax.vecmath.Quat4f q1,
javax.vecmath.Quat4f 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
mul
public final void mul(javax.vecmath.Quat4f q1)
- Sets the value of this quaternion to the quaternion product of
itself and q1 (this = this * q1).
- Parameters:
- q1 - the other quaternion
mulInverse
public final void mulInverse(javax.vecmath.Quat4f q1,
javax.vecmath.Quat4f 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 left quaternion
- q2 - the right quaternion
mulInverse
public final void mulInverse(javax.vecmath.Quat4f 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
inverse
public final void inverse(javax.vecmath.Quat4f q1)
- Sets the value of this quaternion to quaternion inverse of quaternion q1.
- Parameters:
- q1 - the quaternion to be inverted
inverse
public final void inverse()
- Sets the value of this quaternion to the quaternion inverse of itself.
normalize
public final void normalize(javax.vecmath.Quat4f q1)
- Sets the value of this quaternion to the normalized value
of quaternion q1.
- Parameters:
- q1 - the quaternion to be normalized.
normalize
public final void normalize()
- Normalizes the value of this quaternion in place.
set
public final void set(javax.vecmath.Matrix4f m1)
- Sets the value of this quaternion to the rotational component of
the passed matrix.
- Parameters:
- m1 - the matrix4f
set
public final void set(javax.vecmath.Matrix4d m1)
- Sets the value of this quaternion to the rotational component of
the passed matrix.
- Parameters:
- m1 - the matrix4d
set
public final void set(javax.vecmath.Matrix3f m1)
- Sets the value of this quaternion to the rotational component of
the passed matrix.
- Parameters:
- m1 - the matrix3f
set
public final void set(javax.vecmath.Matrix3d m1)
- Sets the value of this quaternion to the rotational component of
the passed matrix.
- Parameters:
- m1 - the matrix3d
set
public final void set(javax.vecmath.AxisAngle4f a1)
- Sets the value of this quaternion to the equivalent rotation of teh
AxisAngle argument.
- Parameters:
- a1 - the axis-angle
set
public final void set(javax.vecmath.AxisAngle4d a1)
- Sets the value of this quaternion to the equivalent rotation of teh
AxisAngle argument.
- Parameters:
- a1 - the axis-angle
interpolate
public final void interpolate(javax.vecmath.Quat4f 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
interpolate
public final void interpolate(javax.vecmath.Quat4f q1,
javax.vecmath.Quat4f 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
- q2 - the second quaternion
- alpha - the alpha interpolation parameter
All Packages Class Hierarchy This Package Previous Next Index