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

Added MathConstants::halfPi to improve readability

This commit is contained in:
jules 2017-12-06 12:56:00 +00:00
parent a0db644e22
commit d727f2a35a
10 changed files with 38 additions and 27 deletions

View file

@ -1669,7 +1669,7 @@ private:
if (uy < 0)
startAngle = -startAngle;
startAngle += MathConstants<double>::pi * 0.5;
startAngle += MathConstants<double>::halfPi;
deltaAngle = acos (jlimit (-1.0, 1.0, ((ux * vx) + (uy * vy))
/ (length * juce_hypot (vx, vy))));