1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-19 01:04:20 +00:00

Couple of minor changes to Line and Graphics methods. Small fix for mouse event handling.

This commit is contained in:
Julian Storer 2010-06-08 19:11:26 +01:00
parent bab3c321c9
commit 0e59a56a51
15 changed files with 378 additions and 82 deletions

View file

@ -210,8 +210,7 @@ public:
p2.applyTransform (transform);
p3.applyTransform (transform);
const Line<float> l2 (p2, p3);
p2 = l2.getPointAlongLineProportionally (l2.findNearestPointTo (p1));
p2 = Line<float> (p2, p3).findNearestPointTo (p1);
}
vertical = std::abs (p1.getX() - p2.getX()) < 0.001f;