MATH: Make slerpQuat const

This commit is contained in:
Bastien Bouclet 2016-04-09 08:41:21 +02:00
parent 8ff0ce6bd9
commit f6775fab96
2 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ Quaternion Quaternion::zAxis(const Angle &angle) {
return q;
}
Quaternion Quaternion::slerpQuat(const Quaternion& to, const float t) {
Quaternion Quaternion::slerpQuat(const Quaternion& to, const float t) const {
Quaternion dst;
float scale0, scale1;
float flip = 1.0f;

View File

@ -189,7 +189,7 @@ public:
* @param t factor to slerp by.
* @return the resulting quaternion.
*/
Quaternion slerpQuat(const Quaternion& to, const float t);
Quaternion slerpQuat(const Quaternion& to, const float t) const;
/**
* Get the direction vector specified by col