summaryrefslogtreecommitdiff
path: root/2004
diff options
context:
space:
mode:
Diffstat (limited to '2004')
-rw-r--r--2004/i/nono/src/utils/mathutil.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/2004/i/nono/src/utils/mathutil.h b/2004/i/nono/src/utils/mathutil.h
index 8d3eee8..c2f1688 100644
--- a/2004/i/nono/src/utils/mathutil.h
+++ b/2004/i/nono/src/utils/mathutil.h
@@ -34,11 +34,11 @@ angleNorm (double a);
void
toPolair (double x, double y, double &r, double &a);
-/// Normalise l'angle entre -pi et +pi.
+/// Normalise l'angle en [-pi..+pi).
inline double
angleNorm (double a)
{
- while (a > M_PI)
+ while (a >= M_PI)
a -= 2.0 * M_PI;
while (a < -M_PI)
a += 2.0 * M_PI;