MATH: Add const qualifier to getEuler.

This commit is contained in:
Joseph Jezak 2014-08-19 08:13:16 -04:00
parent cfeff853be
commit 274e11a68e
2 changed files with 2 additions and 2 deletions

View file

@ -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();

View file

@ -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