From 6a6f144e823e9ebda9564c9642d7bb0801f40a43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 7 Apr 2020 19:48:50 +0200 Subject: [PATCH] Math: wait, no, this function isn't used on two places anymore. --- src/Magnum/Math/Quaternion.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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