diff --git a/math/quat.cpp b/math/quat.cpp index e0f2b879f47..5e82dd18840 100644 --- a/math/quat.cpp +++ b/math/quat.cpp @@ -192,7 +192,7 @@ Quaternion Quaternion::fromEuler(const Angle &first, const Angle &second, const return Quaternion(rot); } -void Quaternion::getEuler(Angle *first, Angle *second, Angle *third, EulerOrder order) { +void Quaternion::getEuler(Angle *first, Angle *second, Angle *third, EulerOrder order) const { // Create a matrix from the Quaternion Matrix4 rot = toMatrix(); diff --git a/math/quat.h b/math/quat.h index f4da3cf9763..3706bc41ab5 100644 --- a/math/quat.h +++ b/math/quat.h @@ -130,7 +130,7 @@ public: * @param order The Euler Order, specified in Rotation3D * @return The new Quaternion */ - void getEuler(Angle *first, Angle *second, Angle *third, EulerOrder order); + void getEuler(Angle *first, Angle *second, Angle *third, EulerOrder order) const; /** * Create a Quaternion from a rotation around the X Axis