mirror of
https://github.com/AxioDL/zeus.git
synced 2025-12-10 22:17:44 +00:00
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:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user