Package org.openscience.cdk.math
Class Quaternion
java.lang.Object
org.openscience.cdk.math.Quaternion
This class handles quaternions.
Quaternion are 2*2 complex matrices.
-
Constructor Summary
ConstructorsConstructorDescriptionQuaternion(double latitude, double longitude, double angle) Generate a quaternion from spherical coordinates and a rotation angleQuaternion(double a, double b, double c, double d) Quaternion(Vector axis, double angle) Generate a quaternion from a rotation axis and an angle -
Method Summary
Modifier and TypeMethodDescriptionadd(Quaternion q) div(Quaternion q) static Quaterniondoublemag()doublemag_sq()mul(double v) mul(Quaternion q) negate()sqrt()sub(Quaternion q) toString()
-
Constructor Details
-
Quaternion
public Quaternion() -
Quaternion
public Quaternion(double a, double b, double c, double d) -
Quaternion
Generate a quaternion from a rotation axis and an angle -
Quaternion
public Quaternion(double latitude, double longitude, double angle) Generate a quaternion from spherical coordinates and a rotation angle
-
-
Method Details