Fix #3191 which was due to a typo when calling atan2 during polar coordinate conversion.

This commit is contained in:
Adam Reichold
2016-03-02 22:04:48 +01:00
parent c9b89f3d19
commit 72283f867d

View File

@@ -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;
}