From cc1d878cff2400b68c12cd90895ca8ee741e6a45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 23 Mar 2019 13:05:25 +0100 Subject: [PATCH] Math: put types before static functions. --- src/Magnum/Math/Color.h | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/Magnum/Math/Color.h b/src/Magnum/Math/Color.h index 27442ca16..1ab31d25c 100644 --- a/src/Magnum/Math/Color.h +++ b/src/Magnum/Math/Color.h @@ -247,6 +247,21 @@ range @f$ [0.0, 1.0] @f$. impossible to explicitly instantiate */ template class Color3: public Vector3 { public: + /** + * @brief Corresponding floating-point type + * + * For HSV and other color spaces. + */ + typedef typename TypeTraits::FloatingPointType FloatingPointType; + + /** + * @brief Type for storing HSV color space values + * + * Hue in range @f$ [0.0, 360.0] @f$, saturation and value in range + * @f$ [0.0, 1.0] @f$. + */ + typedef std::tuple, FloatingPointType, FloatingPointType> Hsv; + /** * @brief Red color * @@ -313,21 +328,6 @@ template class Color3: public Vector3 { return {Implementation::fullChannel(), Implementation::fullChannel(), blue}; } - /** - * @brief Corresponding floating-point type - * - * For HSV and other color spaces. - */ - typedef typename TypeTraits::FloatingPointType FloatingPointType; - - /** - * @brief Type for storing HSV color space values - * - * Hue in range @f$ [0.0, 360.0] @f$, saturation and value in range - * @f$ [0.0, 1.0] @f$. - */ - typedef std::tuple, FloatingPointType, FloatingPointType> Hsv; - /** * @brief Create RGB color from HSV representation * @param hsv Color in HSV color space