Function inverseQuat

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

    Parameters

    • q: Quat

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

    • dest: Quat

      The array to store the inverse quaternion.

    Returns Quat

    The inverse of the quaternion.