Package gnu.math

Class CQuaternion

All Implemented Interfaces:
Externalizable, Serializable

public class CQuaternion extends Quaternion implements Externalizable
General Cartesian Quaternion number (a four-dimensional extension of complex numbers). Use this instead of DQuaternion if you want exact quaternion numbers.
See Also:
  • Constructor Details

  • Method Details

    • re

      public RealNum re()
      Description copied from class: Quantity
      The value of the real component, as a RealNum. The unit() is not factored in, so you actually need to multiply by unit() to get the true real component.
      Overrides:
      re in class Quantity
    • im

      public RealNum im()
      Description copied from class: Quantity
      The value of the imaginary component, as a RealNum. The unit() is not factored in, so you actually need to multiply by unit() to get the true imaginary component.
      Overrides:
      im in class Quantity
    • jm

      public RealNum jm()
      Description copied from class: Quantity
      The value of the "j" component, as a RealNum. The unit() is not factored in, so you actually need to multiply by unit() to get the true "j" component.
      Overrides:
      jm in class Quantity
    • km

      public RealNum km()
      Description copied from class: Quantity
      The value of the "k" component, as a RealNum. The unit() is not factored in, so you actually need to multiply by unit() to get the true "k" component.
      Overrides:
      km in class Quantity
    • writeExternal

      public void writeExternal(ObjectOutput out) throws IOException
      Specified by:
      writeExternal in interface Externalizable
      Throws:
      IOException
    • readExternal

      public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
      Specified by:
      readExternal in interface Externalizable
      Throws:
      IOException
      ClassNotFoundException