From 72283f867da7cb3cb47ff51fa92f1a84a2f5ee0f Mon Sep 17 00:00:00 2001 From: Adam Reichold Date: Wed, 2 Mar 2016 22:04:48 +0100 Subject: [PATCH] Fix #3191 which was due to a typo when calling atan2 during polar coordinate conversion. --- rtengine/coord.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtengine/coord.cc b/rtengine/coord.cc index 4b5dcf40b..8a3d7d080 100644 --- a/rtengine/coord.cc +++ b/rtengine/coord.cc @@ -41,7 +41,7 @@ PolarCoord& PolarCoord::operator= (const Coord& other) const double y = other.y; radius = rtengine::norm2 (x, y); - angle = std::atan2 (x, y) * 180.0 / M_PI; + angle = std::atan2 (y, x) * 180.0 / M_PI; return *this; }