All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class javax.vecmath.AxisAngle4f

java.lang.Object
   |
   +----javax.vecmath.AxisAngle4f

public class AxisAngle4f
extends java.lang.Object
implements java.io.Serializable
A 4 element axis angle represented by single precision floating point x,y,z,angle components. An axis angle is a rotation of angle (radians) about the vector (x,y,z).

Version:
specification 1.1, implementation $Revision: 1.9 $, $Date: 1999/03/04 09:16:33 $
Author:
Kenji hiranabe

Variable Index

 o angle
The angle.
 o x
The x coordinate.
 o y
The y coordinate.
 o z
The z coordinate.

Constructor Index

 o AxisAngle4f()
Constructs and initializes a AxisAngle4f to (0,0,1,0).
 o AxisAngle4f(AxisAngle4d)
Constructs and initializes a AxisAngle4f from the specified AxisAngle4f.
 o AxisAngle4f(AxisAngle4f)
Constructs and initializes a AxisAngle4f from the specified AxisAngle4f.
 o AxisAngle4f(float, float, float, float)
Constructs and initializes an AxisAngle4f from the specified x, y, z, and angle.
 o AxisAngle4f(float[])
Constructs and initializes an AxisAngle4f from the components contained in the array.

Method Index

 o epsilonEquals(AxisAngle4f, float)
Returns true if the L-infinite distance between this axis-angle and axis-angle t1 is less than or equal to the epsilon parameter, otherwise returns false.
 o equals(AxisAngle4f)
Returns true if all of the data members of AxisAngle4f t1 are equal to the corresponding data members in this
 o equals(Object)
Returns true if the Object o1 is of type AxisAngle4f and all of the data members of o1 are equal to the corresponding data members in this AxisAngle4f.
 o get(float[])
Gets the value of this axis angle into the array a of length four in x,y,z,angle order.
 o hashCode()
Returns a hash number based on the data values in this object.
 o set(AxisAngle4d)
Sets the value of this axis angle to the value of axis angle t1.
 o set(AxisAngle4f)
Sets the value of this axis angle to the value of axis angle t1.
 o set(float, float, float, float)
Sets the value of this axis angle to the specified x,y,z,angle.
 o set(float[])
Sets the value of this axis angle from the 4 values specified in the array.
 o set(Matrix3d)
Sets the value of this axis-angle to the rotational component of the passed matrix.
 o set(Matrix3f)
Sets the value of this axis-angle to the rotational component of the passed matrix.
 o set(Matrix4d)
Sets the value of this axis-angle to the rotational component of the passed matrix.
 o set(Matrix4f)
Sets the value of this axis-angle to the rotational component of the passed matrix.
 o set(Quat4d)
Sets the value of this axis-angle to the rotational equivalent of the passed quaternion.
 o set(Quat4f)
Sets the value of this axis-angle to the rotational equivalent of the passed quaternion.
 o toString()
Returns a string that contains the values of this AxisAngle4f.

Variables

 o x
 public float x
The x coordinate.

 o y
 public float y
The y coordinate.

 o z
 public float z
The z coordinate.

 o angle
 public float angle
The angle.

Constructors

 o AxisAngle4f
 public AxisAngle4f(float x,
                    float y,
                    float z,
                    float angle)
Constructs and initializes an AxisAngle4f from the specified x, y, z, and angle.

Parameters:
x - the x coordinate
y - the y coordinate
z - the z coordinate
angle - the angle.
 o AxisAngle4f
 public AxisAngle4f(float a[])
Constructs and initializes an AxisAngle4f from the components contained in the array.

Parameters:
a - the array of length 4 containing x,y,z,angle in order
 o AxisAngle4f
 public AxisAngle4f(javax.vecmath.AxisAngle4f a1)
Constructs and initializes a AxisAngle4f from the specified AxisAngle4f.

Parameters:
a1 - the AxisAngle4f containing the initialization x y z angle data
 o AxisAngle4f
 public AxisAngle4f(javax.vecmath.AxisAngle4d a1)
Constructs and initializes a AxisAngle4f from the specified AxisAngle4f.

Parameters:
a1 - the AxisAngle4d containing the initialization x y z angle data
 o AxisAngle4f
 public AxisAngle4f()
Constructs and initializes a AxisAngle4f to (0,0,1,0).

Methods

 o set
 public final void set(float x,
                       float y,
                       float z,
                       float angle)
Sets the value of this axis angle to the specified x,y,z,angle.

Parameters:
x - the x coordinate
y - the y coordinate
z - the z coordinate
angle - the angle
 o set
 public final void set(float a[])
Sets the value of this axis angle from the 4 values specified in the array.

Parameters:
a - the array of length 4 containing x,y,z,angle in order
 o set
 public final void set(javax.vecmath.AxisAngle4f a1)
Sets the value of this axis angle to the value of axis angle t1.

Parameters:
t1 - the axis angle to be copied
 o set
 public final void set(javax.vecmath.AxisAngle4d a1)
Sets the value of this axis angle to the value of axis angle t1.

Parameters:
t1 - the axis angle to be copied
 o get
 public final void get(float a[])
Gets the value of this axis angle into the array a of length four in x,y,z,angle order.

Parameters:
a - the array of length four
 o set
 public final void set(javax.vecmath.Matrix4f m1)
Sets the value of this axis-angle to the rotational component of the passed matrix.

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

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

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

Parameters:
m1 - the matrix3d
 o set
 public final void set(javax.vecmath.Quat4f q1)
Sets the value of this axis-angle to the rotational equivalent of the passed quaternion.

Parameters:
q1 - the Quat4f
 o set
 public final void set(javax.vecmath.Quat4d q1)
Sets the value of this axis-angle to the rotational equivalent of the passed quaternion.

Parameters:
q1 - the Quat4d
 o toString
 public java.lang.String toString()
Returns a string that contains the values of this AxisAngle4f. The form is (x,y,z,angle).

Returns:
the String representation
Overrides:
toString in class java.lang.Object
 o equals
 public boolean equals(javax.vecmath.AxisAngle4f a1)
Returns true if all of the data members of AxisAngle4f t1 are equal to the corresponding data members in this

Parameters:
a1 - the vector with which the comparison is made.
 o equals
 public boolean equals(java.lang.Object o1)
Returns true if the Object o1 is of type AxisAngle4f and all of the data members of o1 are equal to the corresponding data members in this AxisAngle4f.

Parameters:
o1 - the object with which the comparison is made.
Overrides:
equals in class java.lang.Object
 o epsilonEquals
 public boolean epsilonEquals(javax.vecmath.AxisAngle4f a1,
                              float epsilon)
Returns true if the L-infinite distance between this axis-angle and axis-angle t1 is less than or equal to the epsilon parameter, otherwise returns false. The L-infinite distance is equal to MAX[abs(x1-x2), abs(y1-y2), abs(z1-z2), abs(angle1-angle2)].

Parameters:
a1 - the axis-angle to be compared to this axis-angle
epsilon - the threshold value
 o hashCode
 public int hashCode()
Returns a hash number based on the data values in this object. Two different AxisAngle4f objects with identical data values (ie, returns true for equals(AxisAngle4f) ) will return the same hash number. Two vectors with different data members may return the same hash value, although this is not likely.

Overrides:
hashCode in class java.lang.Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index