From 4db86bad97b5b7af8eef41e5a6afde79a1c112ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 14 Dec 2016 15:30:11 +0100 Subject: [PATCH] Math: doc++ --- src/Magnum/Math/Color.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Magnum/Math/Color.h b/src/Magnum/Math/Color.h index 48f4a3be5..3a48a3b73 100644 --- a/src/Magnum/Math/Color.h +++ b/src/Magnum/Math/Color.h @@ -240,6 +240,7 @@ template class Color3: public Vector3 { * @param hsv Hue, saturation and value * * Hue can overflow the range @f$ [0.0, 360.0] @f$. + * @see @ref toHSV() */ static Color3 fromHSV(HSV hsv) { return Implementation::fromHSV(hsv); @@ -312,7 +313,8 @@ template class Color3: public Vector3 { * * Example usage: * @code - * T hue, saturation, value; + * Deg hue; + * Float saturation, value; * std::tie(hue, saturation, value) = color.toHSV(); * @endcode * @@ -442,9 +444,13 @@ class Color4: public Vector4 { } /** - * @copydoc Color3::fromHSV() + * @brief Create RGB color from HSV representation + * @param hsv Hue, saturation and value * @param a Alpha value, defaults to `1.0` for floating-point types * and maximum positive value for integral types. + * + * Hue can overflow the range @f$ [0.0, 360.0] @f$. + * @see @ref toHSV() */ static Color4 fromHSV(HSV hsv, T a = Implementation::fullChannel()) { return Color4(Implementation::fromHSV(hsv), a);