quat#

Fully qualified name: wp::quat

struct quat#

Quaternion laid out as {x, y, z, w}, binary-compatible with wp::quat_t<float>.

Public Functions

inline quat()#
inline float operator[](int i) const#

Returns the quaternion component at the given index.

Parameters:

i[in] Zero-based component index in the range [0, 3] (x, y, z, w).

Returns:

The component value at index i.

inline float &operator[](int i)#

Returns a mutable reference to the quaternion component at the given index.

Parameters:

i[in] Zero-based component index in the range [0, 3] (x, y, z, w).

Returns:

Reference to the component at index i.

Public Members

float c[4]#

The quaternion components ordered as {x, y, z, w}.