Class Quaternion

java.lang.Object
org.openscience.cdk.math.Quaternion

public class Quaternion extends Object
This class handles quaternions. Quaternion are 2*2 complex matrices.
Belongs to CDK module:
qm
  • Constructor Details

    • Quaternion

      public Quaternion()
    • Quaternion

      public Quaternion(double a, double b, double c, double d)
    • Quaternion

      public Quaternion(Vector axis, double angle)
      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