|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.media.ding3d.vecmath.AxisAngle4f
public class AxisAngle4f
A four-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).
| Field Summary | |
|---|---|
float |
angle
The angle of rotation in radians. |
float |
x
The x coordinate. |
float |
y
The y coordinate. |
float |
z
The z coordinate. |
| Constructor Summary | |
|---|---|
AxisAngle4f()
Constructs and initializes an AxisAngle4f to (0,0,1,0). |
|
AxisAngle4f(AxisAngle4d a1)
Constructs and initializes an AxisAngle4f from the specified AxisAngle4d. |
|
AxisAngle4f(AxisAngle4f a1)
Constructs and initializes an AxisAngle4f from the specified AxisAngle4f. |
|
AxisAngle4f(float[] a)
Constructs and initializes an AxisAngle4f from the array of length 4. |
|
AxisAngle4f(float x,
float y,
float z,
float angle)
Constructs and initializes a AxisAngle4f from the specified xyzw coordinates. |
|
AxisAngle4f(Vector3f axis,
float angle)
Constructs and initializes an AxisAngle4f from the specified axis and angle. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Creates a new object of the same class as this object. |
boolean |
epsilonEquals(AxisAngle4f a1,
float 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. |
boolean |
equals(AxisAngle4f a1)
Returns true if all of the data members of AxisAngle4f a1 are equal to the corresponding data members in this AxisAngle4f. |
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. |
void |
get(float[] a)
Copies the value of this axis-angle into the array a. |
float |
getAngle()
Get the axis angle, in radians. |
float |
getX()
Get value of x coordinate. |
float |
getY()
Get value of y coordinate. |
float |
getZ()
Get value of z coordinate. |
int |
hashCode()
Returns a hash code value based on the data values in this object. |
void |
set(AxisAngle4d a1)
Sets the value of this axis-angle to the value of axis-angle a1. |
void |
set(AxisAngle4f a1)
Sets the value of this axis-angle to the value of axis-angle a1. |
void |
set(float[] a)
Sets the value of this axis-angle to the specified values in the array of length 4. |
void |
set(float x,
float y,
float z,
float angle)
Sets the value of this axis-angle to the specified x,y,z,angle. |
void |
set(Matrix3d m1)
Sets the value of this axis-angle to the rotational component of the passed matrix. |
void |
set(Matrix3f m1)
Sets the value of this axis-angle to the rotational component of the passed matrix. |
void |
set(Matrix4d m1)
Sets the value of this axis-angle to the rotational component of the passed matrix. |
void |
set(Matrix4f m1)
Sets the value of this axis-angle to the rotational component of the passed matrix. |
void |
set(Quat4d q1)
Sets the value of this axis-angle to the rotational equivalent of the passed quaternion. |
void |
set(Quat4f q1)
Sets the value of this axis-angle to the rotational equivalent of the passed quaternion. |
void |
set(Vector3f axis,
float angle)
Sets the value of this AxisAngle4f to the specified axis and angle. |
void |
setAngle(float angle)
Set the axis angle, in radians. |
void |
setX(float x)
Set a new value for x coordinate. |
void |
setY(float y)
Set a new value for y coordinate. |
void |
setZ(float z)
Set a new value for z coordinate. |
java.lang.String |
toString()
Returns a string that contains the values of this AxisAngle4f. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public float x
public float y
public float z
public float angle
| Constructor Detail |
|---|
public AxisAngle4f(float x,
float y,
float z,
float angle)
x - the x coordinatey - the y coordinatez - the z coordinateangle - the angle of rotation in radianspublic AxisAngle4f(float[] a)
a - the array of length 4 containing x,y,z,angle in orderpublic AxisAngle4f(AxisAngle4f a1)
a1 - the AxisAngle4f containing the initialization x y z angle datapublic AxisAngle4f(AxisAngle4d a1)
a1 - the AxisAngle4d containing the initialization x y z angle data
public AxisAngle4f(Vector3f axis,
float angle)
axis - the axisangle - the angle of rotation in radianspublic AxisAngle4f()
| Method Detail |
|---|
public final void set(float x,
float y,
float z,
float angle)
x - the x coordinatey - the y coordinatez - the z coordinateangle - the angle of rotation in radianspublic final void set(float[] a)
a - the array of length 4 containing x,y,z,angle in orderpublic final void set(AxisAngle4f a1)
a1 - the axis-angle to be copiedpublic final void set(AxisAngle4d a1)
a1 - the axis-angle to be copied
public final void set(Vector3f axis,
float angle)
axis - the axisangle - the angle of rotation in radianspublic final void get(float[] a)
a - the arraypublic final void set(Quat4f q1)
q1 - the Quat4fpublic final void set(Quat4d q1)
q1 - the Quat4dpublic 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 java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(AxisAngle4f a1)
a1 - the axis-angle with which the comparison is made
public boolean equals(java.lang.Object o1)
equals in class java.lang.Objecto1 - the object with which the comparison is made
public boolean epsilonEquals(AxisAngle4f a1,
float epsilon)
a1 - the axis-angle to be compared to this axis-angleepsilon - the threshold valuepublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.Object clone()
clone in class java.lang.Objectjava.lang.OutOfMemoryError - if there is not enough memory.Cloneablepublic final float getAngle()
public final void setAngle(float angle)
angle - The angle to set, in radians.public final float getX()
public final void setX(float x)
x - the x coordinate.public final float getY()
public final void setY(float y)
y - the y coordinate.public final float getZ()
public final void setZ(float z)
z - the z coordinate.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||