added stuff

This commit is contained in:
2026-01-26 17:46:20 +03:00
parent 63b4327c91
commit 9fe7a5999d
2 changed files with 18 additions and 3 deletions

View File

@@ -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<Mat4X4> m_to_world_matrix;
};

View File

@@ -0,0 +1,15 @@
//
// Created by Vladislav on 26.01.2026.
//
#pragma once
namespace omath::trigonometry
{
template<class RotationAxisX, class RotationAxisY, class RotationAxisZ>
struct RotationAngles final
{
RotationAxisX rotation_axis_x;
RotationAxisY rotation_axis_y;
RotationAxisZ rotation_axis_z;
};
}