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:
parent
54ea55325f
commit
04a8a44a85
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue