1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-28 02:30:05 +00:00

Make Path::intersectsLine const

This commit is contained in:
Tom Poole 2022-02-24 13:13:56 +00:00
parent 54ea55325f
commit 04a8a44a85
2 changed files with 2 additions and 2 deletions

View file

@ -970,7 +970,7 @@ bool Path::contains (Point<float> point, float tolerance) const
return contains (point.x, point.y, tolerance);
}
bool Path::intersectsLine (Line<float> line, float tolerance)
bool Path::intersectsLine (Line<float> line, float tolerance) const
{
PathFlatteningIterator i (*this, AffineTransform(), tolerance);
Point<float> intersection;

View file

@ -144,7 +144,7 @@ public:
outside the path's boundary.
*/
bool intersectsLine (Line<float> line,
float tolerance = defaultToleranceForTesting);
float tolerance = defaultToleranceForTesting) const;
/** Cuts off parts of a line to keep the parts that are either inside or
outside this path.