From 9fe7a5999d51bde5c373076c3c7b949be448cfdd Mon Sep 17 00:00:00 2001 From: Orange Date: Mon, 26 Jan 2026 17:46:20 +0300 Subject: [PATCH] added stuff --- include/omath/3d_primitives/mesh.hpp | 6 +++--- include/omath/trigonometry/rotation_angles.hpp | 15 +++++++++++++++ 2 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 include/omath/trigonometry/rotation_angles.hpp 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