Fixed potential circular include

This commit is contained in:
2025-03-02 05:20:58 -05:00
parent c5b843f086
commit 179bf277b5

View File

@@ -1,8 +1,7 @@
#pragma once #pragma once
#include <J3ML/LinearAlgebra/EulerAngle.hpp>
#include <J3ML/LinearAlgebra/Quaternion.hpp>
#include <J3ML/LinearAlgebra/Vector3.hpp> #include <J3ML/LinearAlgebra/Vector3.hpp>
#include <J3ML/LinearAlgebra/Forward.hpp>
namespace J3ML::LinearAlgebra { namespace J3ML::LinearAlgebra {
class AxisAngle; class AxisAngle;
@@ -19,6 +18,9 @@ public:
AxisAngle(); AxisAngle();
explicit AxisAngle(const Quaternion& q); explicit AxisAngle(const Quaternion& q);
explicit AxisAngle(const EulerAngleXYZ& e); explicit AxisAngle(const EulerAngleXYZ& e);
/// This constructor derives the Quaternion equivalent of the given matrix, and converts that to AxisAngle representation.
explicit AxisAngle(const Matrix3x3& m);
AxisAngle(const Vector3& axis, float angle); AxisAngle(const Vector3& axis, float angle);
[[nodiscard]] Quaternion ToQuaternion() const;
}; };