Function vec3ApplyQuat

  • Applies a quaternion rotation to a 3D vector.

    Parameters

    • q: Quat

      The quaternion representing the rotation.

    • vec: Vec3

      The vector to apply the quaternion rotation to.

    • dest: Vec3 = ...

      The resulting rotated vector (default is created if not provided).

    Returns Vec3

    The rotated vector.