From c43b8007eda5fc99e96f856369d4f76da38151e4 Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@igpm.rwth-aachen.de> Date: Thu, 15 Jun 2006 14:28:55 +0000 Subject: [PATCH] added missing const [[Imported from SVN: r843]] --- src/quaternion.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/quaternion.hh b/src/quaternion.hh index 5937ffc1..aaf0edf9 100644 --- a/src/quaternion.hh +++ b/src/quaternion.hh @@ -43,7 +43,7 @@ public: } /** \brief Right quaternion multiplication */ - Quaternion<T> mult(const Quaternion<T>& other) { + Quaternion<T> mult(const Quaternion<T>& other) const { Quaternion<T> q; q[0] = (*this)[3]*other[0] - (*this)[2]*other[1] + (*this)[1]*other[2] + (*this)[0]*other[3]; q[1] = (*this)[2]*other[0] + (*this)[3]*other[1] - (*this)[0]*other[2] + (*this)[1]*other[3]; -- GitLab