1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Disambiguation in Point::getAngleToPoint

This commit is contained in:
jules 2014-02-19 16:14:37 +00:00
parent 8c40999c51
commit b0933193bf

View file

@ -151,7 +151,8 @@ public:
*/
FloatType getAngleToPoint (Point other) const noexcept
{
return static_cast<FloatType> (std::atan2 (other.x - x, y - other.y));
return static_cast<FloatType> (std::atan2 (static_cast<FloatType> (other.x - x),
static_cast<FloatType> (y - other.y)));
}
/** Returns the point that would be reached by rotating this point clockwise