diff --git a/src/Magnum/Math/Quaternion.h b/src/Magnum/Math/Quaternion.h index f0d61aabd..81ae3cc8a 100644 --- a/src/Magnum/Math/Quaternion.h +++ b/src/Magnum/Math/Quaternion.h @@ -57,13 +57,6 @@ template inline T dot(const Quaternion& a, const Quaternion& b) { return dot(a.vector(), b.vector()) + a.scalar()*b.scalar(); } -namespace Implementation { - /* Used in angle() and slerp() (no assertions) */ - template inline T angle(const Quaternion& normalizedA, const Quaternion& normalizedB) { - return std::acos(dot(normalizedA, normalizedB)); - } -} - /** @relatesalso Quaternion @brief Angle between normalized quaternions @@ -77,7 +70,7 @@ Expects that both quaternions are normalized. @f[ template inline Rad angle(const Quaternion& normalizedA, const Quaternion& normalizedB) { CORRADE_ASSERT(normalizedA.isNormalized() && normalizedB.isNormalized(), "Math::angle(): quaternions" << normalizedA << "and" << normalizedB << "are not normalized", {}); - return Rad{Implementation::angle(normalizedA, normalizedB)}; + return Rad{std::acos(dot(normalizedA, normalizedB))}; } /** @relatesalso Quaternion