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:
parent
a0db644e22
commit
d727f2a35a
10 changed files with 38 additions and 27 deletions
|
|
@ -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))));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue