MATH: Add const qualifier to getEuler.
This commit is contained in:
parent
cfeff853be
commit
274e11a68e
2 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue