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:
parent
8c40999c51
commit
b0933193bf
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue