Function normalizeQuat

  • Normalizes a quaternion. The resulting normalized quaternion is stored in the destination array.

    Parameters

    • q: Quat

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

    • dest: Quat = q

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

    Returns Quat

    The normalized quaternion.