Quaternion structure, serves for rotation purposes. Almost every inputs user-side are expressed in degrees from the Yaw Pitch Roll coordinate system.
More...
#include <Quaternion.hpp>
Quaternion structure, serves for rotation purposes. Almost every inputs user-side are expressed in degrees from the Yaw Pitch Roll coordinate system.
◆ Quaternion()
| Quaternion::Quaternion |
( |
const glm::vec3 & |
rotation = { 0.0f, 0.0f, 0.0f } | ) |
|
Quaternion constructor with rotation in degrees.
- Parameters
-
◆ Rotate()
| void Quaternion::Rotate |
( |
const glm::vec3 & |
rotation | ) |
|
Rotates on X, Y, Z axis (degrees)
- Parameters
-
◆ RotateX()
| void Quaternion::RotateX |
( |
const float |
rotation | ) |
|
Rotates on X axis (degrees)
- Parameters
-
◆ RotateY()
| void Quaternion::RotateY |
( |
const float |
rotation | ) |
|
Rotates on Y axis (degrees)
- Parameters
-
◆ RotateZ()
| void Quaternion::RotateZ |
( |
const float |
rotation | ) |
|
Rotates on Z axis (degrees)
- Parameters
-
◆ SetRotation()
| void Quaternion::SetRotation |
( |
const glm::vec3 & |
rotation | ) |
|
Sets degrees rotation.
- Parameters
-
◆ ToEulerAngles()
| glm::vec3 Quaternion::ToEulerAngles |
( |
| ) |
const |
The documentation for this class was generated from the following files:
- C:/Users/timmi/OneDrive/Documents/IMPORTANT/Tsinghua/Courses/Spring Semester/Fundamentals of Computer Graphics/Project/Code/OGL_Implementation/Quaternion.hpp
- C:/Users/timmi/OneDrive/Documents/IMPORTANT/Tsinghua/Courses/Spring Semester/Fundamentals of Computer Graphics/Project/Code/OGL_Implementation/Quaternion.cpp