Function conjugateQuat

  • Computes the conjugate of a quaternion. The resulting conjugated quaternion is stored in the destination array.

    Parameters

    • q: Quat

      The quaternion to conjugate, represented as a 4-element array [x, y, z, w].

    • dest: Quat = q

      The array to store the conjugated quaternion. If not provided, the input quaternion will be conjugated in place.

    Returns Quat

    The conjugate of the quaternion.