1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-19 01:04:20 +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

@ -509,7 +509,7 @@ struct GraphEditorPanel::ConnectorComponent : public Component,
arrowL, 0.0f);
arrow.applyTransform (AffineTransform()
.rotated (MathConstants<float>::pi * 0.5f - (float) atan2 (p2.x - p1.x, p2.y - p1.y))
.rotated (MathConstants<float>::halfPi - (float) atan2 (p2.x - p1.x, p2.y - p1.y))
.translated ((p1 + p2) * 0.5f));
linePath.addPath (arrow);