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