mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-20 01:14:20 +00:00
Began phasing out double_Pi and float_Pi in favour of MathConstants::pi. Also added MathConstants::twoPi
This commit is contained in:
parent
daab5147c2
commit
d0111a4f96
49 changed files with 307 additions and 292 deletions
|
|
@ -509,7 +509,7 @@ struct GraphEditorPanel::ConnectorComponent : public Component,
|
|||
arrowL, 0.0f);
|
||||
|
||||
arrow.applyTransform (AffineTransform()
|
||||
.rotated (float_Pi * 0.5f - (float) atan2 (p2.x - p1.x, p2.y - p1.y))
|
||||
.rotated (MathConstants<float>::pi * 0.5f - (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