|
Crimson Engine 1.0.0
A high-performance C++20 game engine prototype showcasing a custom ECS, Vulkan renderer, and ImGui editor.
|
Compatibility layer that wraps a glm::quat but behaves like a glm::vec3 for Euler angles. More...
#include <Transform.hpp>
Public Member Functions | |
| RotationField ()=default | |
| RotationField (const glm::vec3 &euler) | |
| RotationField (const glm::quat &quaternion) | |
| RotationField & | operator= (const glm::vec3 &eulerDegrees) |
| RotationField & | operator= (const glm::quat &newQ) |
| RotationField & | operator= (const std::initializer_list< float > &list) |
| operator glm::vec3 () const | |
| operator glm::quat () const | |
| glm::quat | getQuat () const |
| void | setQuat (const glm::quat &newQ) |
Public Attributes | |
| float | x = 0.0f |
| float | y = 0.0f |
| float | z = 0.0f |
Private Member Functions | |
| void | syncQuatFromEuler () const |
| void | syncEulerFromQuat () |
Private Attributes | |
| glm::quat | q { 1.0f, 0.0f, 0.0f, 0.0f } |
| float | lastX = 0.0f |
| float | lastY = 0.0f |
| float | lastZ = 0.0f |
Compatibility layer that wraps a glm::quat but behaves like a glm::vec3 for Euler angles.
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
mutableprivate |
|
mutableprivate |
|
mutableprivate |
|
private |
| float RotationField::x = 0.0f |
| float RotationField::y = 0.0f |
| float RotationField::z = 0.0f |