General: Mark member functions as const where applicable

These don't modify internal member state, so they can be const.
This commit is contained in:
Lioncash
2019-09-01 21:53:55 -04:00
parent 050e86aae8
commit f6854d8e82
8 changed files with 10 additions and 10 deletions

View File

@@ -226,7 +226,7 @@ CQuaternion CQuaternion::buildEquivalent() const {
return CQuaternion::fromAxisAngle(CUnitVector3f(mSimd.shuffle<1, 2, 3, 3>()), tmp + 2.0 * M_PI);
}
CRelAngle CQuaternion::angleFrom(const zeus::CQuaternion& other) {
CRelAngle CQuaternion::angleFrom(const zeus::CQuaternion& other) const {
return std::acos(zeus::clamp(-1.f, dot(other), 1.f));
}