Represents a quaternion for 3D rotations. More...
Public Member Functions | |
vec3 | get_forward_vector () const |
Get the forward vector of the quaternion. | |
vec3 | get_right_vector () const |
Get the right vector of the quaternion. | |
vec3 | get_up_vector () const |
Get the up vector of the quaternion. | |
Public Attributes | |
float | x |
float | y |
float | z |
float | w |
Represents a quaternion for 3D rotations.
Quat is a class representing a unit quaternion, used for 3D rotations. It provides various operations to manipulate and transform quaternions.
Definition at line 66 of file MathDoxy.h.
vec3 Quat::get_forward_vector | ( | ) | const |
Get the forward vector of the quaternion.
vec3 Quat::get_right_vector | ( | ) | const |
Get the right vector of the quaternion.
vec3 Quat::get_up_vector | ( | ) | const |
Get the up vector of the quaternion.
float Quat::w |
w component of the quaternion
Definition at line 71 of file MathDoxy.h.
float Quat::x |
x component of the quaternion
Definition at line 68 of file MathDoxy.h.
float Quat::y |
y component of the quaternion
Definition at line 69 of file MathDoxy.h.
float Quat::z |
z component of the quaternion
Definition at line 70 of file MathDoxy.h.