|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.freehep.graphics3d.Quaternion
Keeps a quaternion.
Original ArcBall C code from Ken Shoemake, Graphics Gems IV, 1993.
Field Summary | |
double |
w
|
double |
x
|
double |
y
|
double |
z
|
Constructor Summary | |
Quaternion()
creates a null quaternion |
|
Quaternion(double x,
double y,
double z,
double w)
creates a quaternion from x,y,z,w |
|
Quaternion(Quaternion q)
creates a new quaternion from q |
Method Summary | |
Quaternion |
conjugate(Quaternion r)
|
double |
length()
|
Quaternion |
multiply(Quaternion q,
Quaternion r)
|
Quaternion |
normalize(Quaternion r)
|
Quaternion |
set(double x,
double y,
double z,
double w)
|
Quaternion |
set(Quaternion q)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public double x
public double y
public double z
public double w
Constructor Detail |
public Quaternion(double x, double y, double z, double w)
public Quaternion()
public Quaternion(Quaternion q)
Method Detail |
public String toString()
public double length()
public Quaternion normalize(Quaternion r)
public Quaternion multiply(Quaternion q, Quaternion r)
public Quaternion conjugate(Quaternion r)
public Quaternion set(double x, double y, double z, double w)
public Quaternion set(Quaternion q)
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |