From b847eee75024cc0a11a55d5017f55608e5de90fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 23 Feb 2013 16:09:42 +0100 Subject: [PATCH] Brought Complex and DualQuaternion to Magnum namespace. --- src/Magnum.h | 8 +++++++- src/Math/Complex.h | 1 + src/Math/DualQuaternion.h | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/Magnum.h b/src/Magnum.h index f5dd8a4ed..05b6b5c17 100644 --- a/src/Magnum.h +++ b/src/Magnum.h @@ -117,9 +117,15 @@ typedef Math::Matrix3 Matrix3d; typedef Math::Matrix4 Matrix4d; #endif -/** @brief Quaternion */ +/** @brief %Complex number */ +typedef Math::Complex Complex; + +/** @brief %Quaternion */ typedef Math::Quaternion Quaternion; +/** @brief %Dual quaternion */ +typedef Math::DualQuaternion DualQuaternion; + /** @brief Floating-point constants */ /* Using float instead of GLfloat to not break KDevelop autocompletion */ typedef Math::Constants Constants; diff --git a/src/Math/Complex.h b/src/Math/Complex.h index 36f559263..24c25d9dd 100644 --- a/src/Math/Complex.h +++ b/src/Math/Complex.h @@ -33,6 +33,7 @@ namespace Magnum { namespace Math { @tparam T Data type Represents 2D rotation. +@see Magnum::Complex, Matrix3 */ template class Complex { public: diff --git a/src/Math/DualQuaternion.h b/src/Math/DualQuaternion.h index 543383718..d528c1a5a 100644 --- a/src/Math/DualQuaternion.h +++ b/src/Math/DualQuaternion.h @@ -30,7 +30,7 @@ namespace Magnum { namespace Math { @tparam T Underlying data type Represents 3D rotation and translation. -@see Dual, Quaternion, Matrix4 +@see Magnum::DualQuaternion, Dual, Quaternion, Matrix4 */ template class DualQuaternion: public Dual> { public: