|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.enough.polish.graphics3d.m3g.utils.Quaternion
public class Quaternion
Quaternion implementation.
Useful for Transform.postRotateQuat() transforms
| Field Summary | |
|---|---|
float |
w
|
float |
x
|
float |
y
|
float |
z
|
| Constructor Summary | |
|---|---|
Quaternion()
|
|
Quaternion(float x,
float y,
float z,
float w)
|
|
| Method Summary | |
|---|---|
float |
getW()
|
float |
getX()
|
float |
getY()
|
float |
getZ()
|
double |
length()
|
void |
normalize()
|
Quaternion |
postMultiply(Quaternion other)
Multiply quaternions |
String |
propertiesToString()
|
void |
set(float x,
float y,
float z,
float w)
|
void |
setAxisAngle(float angle,
float x,
float y,
float z)
Sets the values of quaternion by converting the given axis-angle values. |
void |
setFromEulerAngles(float rx,
float ry,
float rz)
Sets the values of quaternion from Euler angles |
void |
setIdentity()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public volatile float x
public volatile float y
public volatile float z
public volatile float w
| Constructor Detail |
|---|
public Quaternion()
public Quaternion(float x,
float y,
float z,
float w)
| Method Detail |
|---|
public void setIdentity()
public void setAxisAngle(float angle,
float x,
float y,
float z)
angle - of rotation in degreesx - component of rotation axisy - component of rotation axisz - component of rotation axis
public void setFromEulerAngles(float rx,
float ry,
float rz)
rx - angle of rotation around x-axis in degreesry - angle of rotation around y-axis in degreesrz - angle of rotation around z-axis in degreespublic Quaternion postMultiply(Quaternion other)
self * other
other - right hand side quaternion
public void normalize()
public double length()
public void set(float x,
float y,
float z,
float w)
public float getX()
public float getY()
public float getZ()
public float getW()
public String propertiesToString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||