From 4490dfd68f56cd222f7c5d8cf6c145582db80829 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 30 Jan 2020 13:32:45 +0100 Subject: [PATCH] Math: use a degree symbol for hue ranges. --- src/Magnum/Math/Color.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Magnum/Math/Color.h b/src/Magnum/Math/Color.h index 4ff4817f1..2db51da63 100644 --- a/src/Magnum/Math/Color.h +++ b/src/Magnum/Math/Color.h @@ -237,8 +237,8 @@ need to use either @ref pack() / @ref unpack() or the integer variants of @snippet MagnumMath.cpp Color3-pack Conversion from and to HSV is done always using floating-point types, so hue -is always in range in range @f$ [0.0, 360.0] @f$, saturation and value in -range @f$ [0.0, 1.0] @f$. +is always in range in range @f$ [0.0\degree, 360.0\degree] @f$, saturation and +value in range @f$ [0.0, 1.0] @f$. @see @link operator""_rgb() @endlink, @link operator""_rgbf() @endlink, @link operator""_srgb() @endlink, @link operator""_srgbf() @endlink, @@ -332,7 +332,8 @@ template class Color3: public Vector3 { * @brief Create RGB color from HSV representation * @param hsv Color in HSV color space * - * Hue can overflow the range @f$ [0.0, 360.0] @f$. + * Hue is allowed to overflow the range @f$ [0.0\degree, 360.0\degree] @f$, + * in which case it will be wrapped back to this range. * @see @ref toHsv() */ static Color3 fromHsv(const ColorHsv& hsv) { @@ -503,7 +504,7 @@ template class Color3: public Vector3 { /** * @brief Hue - * @return Hue in range @f$ [0.0, 360.0] @f$. + * @return Hue in range @f$ [0.0\degree, 360.0\degree] @f$. * * @see @ref saturation(), @ref value(), @ref toHsv(), @ref fromHsv() */