Evospace  0.19.0
Modding API
 
Loading...
Searching...
No Matches
Quat Class Reference

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
 

Detailed Description

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.

Member Function Documentation

◆ get_forward_vector()

vec3 Quat::get_forward_vector ( ) const

Get the forward vector of the quaternion.

Returns
Vec3 representing the forward direction of the quaternion.

◆ get_right_vector()

vec3 Quat::get_right_vector ( ) const

Get the right vector of the quaternion.

Returns
Vec3 representing the right direction of the quaternion.

◆ get_up_vector()

vec3 Quat::get_up_vector ( ) const

Get the up vector of the quaternion.

Returns
Vec3 representing the up direction of the quaternion.

Member Data Documentation

◆ w

float Quat::w

w component of the quaternion

Definition at line 71 of file MathDoxy.h.

◆ x

float Quat::x

x component of the quaternion

Definition at line 68 of file MathDoxy.h.

◆ y

float Quat::y

y component of the quaternion

Definition at line 69 of file MathDoxy.h.

◆ z

float Quat::z

z component of the quaternion

Definition at line 70 of file MathDoxy.h.