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.

    Type Parameters

    Parameters

    • q: BaseArgType

      quaternion to compute the conjugate of.

    • Optional dst: T

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

    Returns T

    The conjugate of q