Browse Source

Make Path::intersectsLine const

v6.1.6
Tom Poole 3 years ago
parent
commit
04a8a44a85
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      modules/juce_graphics/geometry/juce_Path.cpp
  2. +1
    -1
      modules/juce_graphics/geometry/juce_Path.h

+ 1
- 1
modules/juce_graphics/geometry/juce_Path.cpp 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;


+ 1
- 1
modules/juce_graphics/geometry/juce_Path.h 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.


Loading…
Cancel
Save