Function conjugate

  • Compute the conjugate of a quaternion For quaternions with a magnitude of 1 (a unit quaternion) this returns the same as the inverse but is faster to calculate.

    Parameters

    • q: Quat

      quaternion to compute the conjugate of.

    • Optional dst: Quat

      quaternion to hold result. If not passed in a new one is created.

    Returns Quat

    The conjugate of q