From a4514e7acbe61dcffc32609243f67c36e5aebee3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 7 Jan 2013 01:21:12 +0100 Subject: [PATCH] Brought Math::Quaternion into Magnum namespace as Quaternion. --- src/Magnum.h | 5 +++++ src/Math/Quaternion.h | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Magnum.h b/src/Magnum.h index 7123b40f7..1f8c7d14f 100644 --- a/src/Magnum.h +++ b/src/Magnum.h @@ -64,6 +64,8 @@ namespace Math { template class Matrix3; template class Matrix4; + template class Quaternion; + template constexpr T deg(T value); template constexpr T rad(T value); template class Constants; @@ -117,6 +119,9 @@ typedef Math::Matrix3 Matrix3; /** @brief 4x4 floating-point matrix */ typedef Math::Matrix4 Matrix4; +/** @brief Quaternion */ +typedef Math::Quaternion Quaternion; + /** @brief Floating-point constants */ /* Using float instead of GLfloat to not break KDevelop autocompletion */ typedef Math::Constants Constants; diff --git a/src/Math/Quaternion.h b/src/Math/Quaternion.h index 737f3978c..abac00de5 100644 --- a/src/Math/Quaternion.h +++ b/src/Math/Quaternion.h @@ -30,7 +30,11 @@ namespace Magnum { namespace Math { -/** @brief %Quaternion */ +/** +@brief %Quaternion + +@see Magnum::Quaternion +*/ template class Quaternion { public: /**