From fb1cbd416d284ca666db942ae62f98b95f4f1244 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 24 Oct 2015 20:39:57 +0200 Subject: [PATCH] Math: document implementation reasons. --- src/Magnum/Math/Functions.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Magnum/Math/Functions.h b/src/Magnum/Math/Functions.h index 4ccb2db1b..bd538a283 100644 --- a/src/Magnum/Math/Functions.h +++ b/src/Magnum/Math/Functions.h @@ -101,6 +101,9 @@ template std::pair div(Integral x, Integral /** @todo Can't trigonometric functions be done with only one overload? */ +/* The functions accept Unit instead of Rad to make them working with operator + products (e.g. 2*35.0_degf, which is of type Unit) */ + /** @brief Sine */ #ifdef DOXYGEN_GENERATING_OUTPUT template inline T sin(Rad angle);