Function quatToAngleAxis

  • Converts a quaternion to angle-axis representation. The resulting angle-axis representation is stored in the provided array.

    Parameters

    • q: Quat

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

    • angleAxis: Vec4 = ...

      The array to store the angle-axis representation. If not provided, a new array will be created.

    Returns Vec4

    The angle-axis representation as a 4-element array [x, y, z, angle].