diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2012-08-24 16:46:21 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:42:24 +0300 |
commit | 521c00cb8bf7b63fd97f73f242af5c51cdd0520a (patch) | |
tree | a246823368efc481f6038b152c2ba31f09874c02 | |
parent | 8fafe0d9327854d8d8c78ee67476e6d2c3e9d557 (diff) |
changed abs to fabs.
-rw-r--r-- | geometry/angles.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/geometry/angles.hpp b/geometry/angles.hpp index 7aac2b0dd4..23d8729883 100644 --- a/geometry/angles.hpp +++ b/geometry/angles.hpp @@ -93,7 +93,7 @@ namespace ang double res = 0; - if (abs(rad1 - rad2) > math::pi) + if (fabs(rad1 - rad2) > math::pi) { if (rad1 > rad2) res = 2 * math::pi - (rad1 - rad2); |