mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 07:03:25 +00:00
added stuff
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
15
include/omath/trigonometry/rotation_angles.hpp
Normal file
15
include/omath/trigonometry/rotation_angles.hpp
Normal 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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user