From 179bf277b56064e51e354d62ed6e1a17aa1be15a Mon Sep 17 00:00:00 2001 From: josh Date: Sun, 2 Mar 2025 05:20:58 -0500 Subject: [PATCH] Fixed potential circular include --- include/J3ML/LinearAlgebra/AxisAngle.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/J3ML/LinearAlgebra/AxisAngle.hpp b/include/J3ML/LinearAlgebra/AxisAngle.hpp index 7f65902..b546d8f 100644 --- a/include/J3ML/LinearAlgebra/AxisAngle.hpp +++ b/include/J3ML/LinearAlgebra/AxisAngle.hpp @@ -1,8 +1,7 @@ #pragma once -#include -#include #include +#include namespace J3ML::LinearAlgebra { class AxisAngle; @@ -19,6 +18,9 @@ public: AxisAngle(); explicit AxisAngle(const Quaternion& q); 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); + [[nodiscard]] Quaternion ToQuaternion() const; }; \ No newline at end of file