Package org.jlab.rec.rich
Class Quaternion
java.lang.Object
org.jlab.rec.rich.Quaternion
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionQuaternion(double w, double x, double y, double z) Quaternion(double angle, Vector3D rotationAxis) 
- 
Method SummaryModifier and TypeMethodDescriptionvoiddoublegetSize()doubleGetW()doubleGetX()doubleGetY()doubleGetZ()multiply(Quaternion qb) Multiplication between two Quaternionsvoidvoidset(double w, double x, double y, double z) voidSet the rotation Quaternionvoidset(Quaternion q) Set the Quaternion using another onevoidshow()toRotation(Quaternion q1) 
- 
Field Details- 
xpublic double x
- 
ypublic double y
- 
zpublic double z
- 
wpublic double w
 
- 
- 
Constructor Details- 
Quaternionpublic Quaternion()
- 
Quaternion
- 
Quaternionpublic Quaternion(double w, double x, double y, double z) 
 
- 
- 
Method Details- 
setSet the rotation Quaternion- Parameters:
- angle- the angle of rotation
- rotationAxis- the rotation axis (normal two the vector plane)
 
- 
setpublic void set(double w, double x, double y, double z) 
- 
setSet the Quaternion using another one- Parameters:
- q-
 
- 
getSizepublic double getSize()
- 
normalizepublic void normalize()
- 
multiplyMultiplication between two Quaternions- Parameters:
- qb- the one that multiply
- result- of the multiplication
 
- 
conjugatepublic void conjugate()
- 
rotate
- 
toRotation
- 
GetXpublic double GetX()
- 
GetYpublic double GetY()
- 
GetZpublic double GetZ()
- 
GetWpublic double GetW()
- 
showpublic void show()
 
-