vec3#
Fully qualified name: wp::vec3
-
struct vec3#
3-element float vector, binary-compatible with
wp::vec_t<3, float>.Public Functions
-
inline vec3()#
-
inline float operator[](int i) const#
Returns the vector component at the given index.
- Parameters:
i – [in] Zero-based component index in the range [0, 2].
- Returns:
The component value at index i.
-
inline float &operator[](int i)#
Returns a mutable reference to the vector component at the given index.
- Parameters:
i – [in] Zero-based component index in the range [0, 2].
- Returns:
Reference to the component at index i.
Public Members
-
float c[3]#
The three vector components.
-
inline vec3()#