diff --git a/include/omath/3d_primitives/mesh.hpp b/include/omath/3d_primitives/mesh.hpp index 00a8e50..1ecfe2f 100644 --- a/include/omath/3d_primitives/mesh.hpp +++ b/include/omath/3d_primitives/mesh.hpp @@ -63,7 +63,7 @@ namespace omath::primitives m_to_world_matrix = std::nullopt; } - void set_rotation(const RotationAngles& new_rotation_angles) + void set_rotation(const RotationAnglesType& new_rotation_angles) { m_rotation_angles = new_rotation_angles; m_to_world_matrix = std::nullopt; @@ -82,7 +82,7 @@ namespace omath::primitives } [[nodiscard]] - const RotationAngles& get_rotation_angles() const + const RotationAnglesType& get_rotation_angles() const { return m_rotation_angles; } @@ -127,7 +127,7 @@ namespace omath::primitives VectorType m_origin; VectorType m_scale; - RotationAngles m_rotation_angles; + RotationAnglesType m_rotation_angles; mutable std::optional m_to_world_matrix; }; diff --git a/include/omath/trigonometry/rotation_angles.hpp b/include/omath/trigonometry/rotation_angles.hpp new file mode 100644 index 0000000..1dc16db --- /dev/null +++ b/include/omath/trigonometry/rotation_angles.hpp @@ -0,0 +1,15 @@ +// +// Created by Vladislav on 26.01.2026. +// +#pragma once + +namespace omath::trigonometry +{ + template + struct RotationAngles final + { + RotationAxisX rotation_axis_x; + RotationAxisY rotation_axis_y; + RotationAxisZ rotation_axis_z; + }; +} \ No newline at end of file