java.io.Serializable
public class AxisAngle4f
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field | Description |
---|---|---|
float |
angle |
The angle.
|
float |
x |
The x coordinate.
|
float |
y |
The y coordinate.
|
float |
z |
The z coordinate.
|
Constructor | Description |
---|---|
AxisAngle4f() |
Constructs and initializes a AxisAngle4f to (0,0,1,0).
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.Object o) |
Returns true if the Object o is of type AxisAngle4f and all of the data
members of o1 are equal to the corresponding data members in this
AxisAngle4f.
|
int |
hashCode() |
Returns a hash number based on the data values in this object.
|
static AxisAngle4f |
new4(float x,
float y,
float z,
float angle) |
Constructs and initializes an AxisAngle4f from the specified x, y, z, and
angle.
|
static AxisAngle4f |
newAA(AxisAngle4f a1) |
Constructs and initializes a AxisAngle4f from the specified AxisAngle4f.
|
static AxisAngle4f |
newVA(Vector3f axis,
float angle) |
Constructs and initializes an AxisAngle4f from the specified axis and
angle.
|
void |
set4(float x,
float y,
float z,
float angle) |
Sets the value of this axis angle to the specified x,y,z,angle.
|
void |
setAA(AxisAngle4f a) |
Sets the value of this axis angle to the value of axis angle t1.
|
void |
setM(Matrix3f m1) |
Sets the value of this axis-angle to the rotational component of the passed
matrix.
|
void |
setVA(Vector3f axis,
float angle) |
Sets the value of this AxisAngle4f to the specified axis and angle.
|
java.lang.String |
toString() |
Returns a string that contains the values of this AxisAngle4f.
|
public float x
public float y
public float z
public float angle
public AxisAngle4f()
public static AxisAngle4f new4(float x, float y, float z, float angle)
x
- the x coordinatey
- the y coordinatez
- the z coordinateangle
- the angle.public static AxisAngle4f newAA(AxisAngle4f a1)
a1
- the AxisAngle4f containing the initialization x y z angle datapublic static AxisAngle4f newVA(Vector3f axis, float angle)
axis
- the axisangle
- the anglepublic final void setVA(Vector3f axis, float angle)
axis
- the axisangle
- the anglepublic final void set4(float x, float y, float z, float angle)
x
- the x coordinatey
- the y coordinatez
- the z coordinateangle
- the anglepublic final void setAA(AxisAngle4f a)
a
- the axis angle to be copiedpublic final void setM(Matrix3f m1)
m1
- the matrix3fpublic java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the object with which the comparison is made.public int hashCode()
hashCode
in class java.lang.Object