All Packages Class Hierarchy This Package Previous Next Index
Class java.vecmath.AxisAngle4d
java.lang.Object
|
+----java.vecmath.AxisAngle4d
- public class AxisAngle4d
- extends Object
A 4 element axis angle represented by double precision floating point
x,y,z,angle components. An axis angle is a rotation of angle (radians)
about the vector (x,y,z).
-
angle
- The angle
-
x
- The x coordinate.
-
y
- The y coordinate.
-
z
- The z coordinate.
-
AxisAngle4d()
- Constructs and initializes an AxisAngle4d to (0,0,0,0).
-
AxisAngle4d(AxisAngle4d)
- Constructs and initializes an AxisAngle4d from the specified AxisAngle4d.
-
AxisAngle4d(AxisAngle4f)
- Constructs and initializes an AxisAngle4d from the specified
AxisAngle4f.
-
AxisAngle4d(double, double, double, double)
- Constructs and initializes an AxisAngle4d from the specified
x, y, z, and angle.
-
AxisAngle4d(double[])
- Constructs and initializes an AxisAngle4d from the components
contained in the array.
-
epsilonEquals(AxisAngle4d, double)
- Returns true if the L-infinite distance between this axis-angle
and axis-angle a1 is less than or equal to the epsilon parameter,
otherwise returns false.
-
equals(AxisAngle4d)
- Returns true if all of the data members of AxisAngle4d a1 are
equal to the corresponding data members in this AxisAngle4d.
-
get(double[])
- Gets the value of this axis angle and places it into the array a of
length four in x,y,z,angle order.
-
hashCode()
- Returns a hash number based on the data values in this
object.
-
set(AxisAngle4d)
- Sets the value of this axis angle to the value of axis angle a1.
-
set(AxisAngle4f)
- Sets the value of this axis angle to the value of axis angle a1.
-
set(double, double, double, double)
- Sets the value of this axis angle to the specified x,y,z,angle.
-
set(double[])
- Sets the value of this axis angle to the specified x,y,z,angle.
-
set(Matrix3d)
- Sets the value of this axis-angle to the rotational component of
the passed matrix.
-
set(Matrix3f)
- Sets the value of this axis-angle to the rotational component of
the passed matrix.
-
set(Matrix4d)
- Sets the value of this axis-angle to the rotational component of
the passed matrix.
-
set(Matrix4f)
- Sets the value of this axis-angle to the rotational component of
the passed matrix.
-
set(Quat4d)
- Sets the value of this axis-angle to the rotational equivalent
of the passed quaternion.
-
set(Quat4f)
- Sets the value of this axis-angle to the rotational equivalent
of the passed quaternion.
-
toString()
- Returns a string that contains the values of this AxisAngle4d.
x
public double x
- The x coordinate.
y
public double y
- The y coordinate.
z
public double z
- The z coordinate.
angle
public double angle
- The angle
AxisAngle4d
public AxisAngle4d(double x,
double y,
double z,
double angle)
- Constructs and initializes an AxisAngle4d from the specified
x, y, z, and angle.
- Parameters:
- x - the x coordinate
- y - the y coordinate
- z - the z coordinate
- angle - the angle
AxisAngle4d
public AxisAngle4d(double a[])
- Constructs and initializes an AxisAngle4d from the components
contained in the array.
- Parameters:
- a - the array of length 4 containing x,y,z,angle in order
AxisAngle4d
public AxisAngle4d(AxisAngle4d a1)
- Constructs and initializes an AxisAngle4d from the specified AxisAngle4d.
- Parameters:
- a1 - the AxisAngle4d containing the initialization x y z angle data
AxisAngle4d
public AxisAngle4d(AxisAngle4f a1)
- Constructs and initializes an AxisAngle4d from the specified
AxisAngle4f.
- Parameters:
- a1 - the AxisAngle4f containing the initialization x y z angle data
AxisAngle4d
public AxisAngle4d()
- Constructs and initializes an AxisAngle4d to (0,0,0,0).
set
public final void set(double x,
double y,
double z,
double 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 - amount of rotation in radians
set
public final void set(double a[])
- Sets the value of this axis angle to the specified x,y,z,angle.
- Parameters:
- a - the array of length 4 containing x,y,z,angle in order
set
public final void set(AxisAngle4d a1)
- Sets the value of this axis angle to the value of axis angle a1.
- Parameters:
- a1 - the axis angle to be copied
set
public final void set(AxisAngle4f a1)
- Sets the value of this axis angle to the value of axis angle a1.
- Parameters:
- a1 - the axis angle to be copied
get
public final void get(double a[])
- Gets the value of this axis angle and places it into the array a of
length four in x,y,z,angle order.
- Parameters:
- a - the array of length four
set
public final void set(Matrix4f m1)
- Sets the value of this axis-angle to the rotational component of
the passed matrix.
- Parameters:
- m1 - the matrix4f
set
public final void set(Matrix4d m1)
- Sets the value of this axis-angle to the rotational component of
the passed matrix.
- Parameters:
- m1 - the matrix4d
set
public final void set(Matrix3f m1)
- Sets the value of this axis-angle to the rotational component of
the passed matrix.
- Parameters:
- m1 - the matrix3f
set
public final void set(Matrix3d m1)
- Sets the value of this axis-angle to the rotational component of
the passed matrix.
- Parameters:
- m1 - the matrix3d
set
public final void set(Quat4f q1)
- Sets the value of this axis-angle to the rotational equivalent
of the passed quaternion.
- Parameters:
- q1 - the Quat4f
set
public final void set(Quat4d q1)
- Sets the value of this axis-angle to the rotational equivalent
of the passed quaternion.
- Parameters:
- q1 - the Quat4d
toString
public String toString()
- Returns a string that contains the values of this AxisAngle4d.
The form is (x,y,z,angle).
- Returns:
- the String representation
- Overrides:
- toString in class Object
equals
public boolean equals(AxisAngle4d a1)
- Returns true if all of the data members of AxisAngle4d a1 are
equal to the corresponding data members in this AxisAngle4d.
- Parameters:
- a1 - The axis-angle with which the comparison is made.
- Returns:
- true or false
epsilonEquals
public boolean epsilonEquals(AxisAngle4d a1,
double epsilon)
- Returns true if the L-infinite distance between this axis-angle
and axis-angle a1 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
hashCode
public int hashCode()
- Returns a hash number based on the data values in this
object. Two different AxisAngle4d objects with identical data values
(ie, returns true for equals(AxisAngle4d) ) will return the same hash
number. Two vectors with different data members may return the
same hash value, although this is not likely.
- Returns:
- the integer hash value
- Overrides:
- hashCode in class Object
All Packages Class Hierarchy This Package Previous Next Index