From 04a8a44a85835fc2b982dd2f91c1dfe17ce5690c Mon Sep 17 00:00:00 2001 From: Tom Poole Date: Thu, 24 Feb 2022 13:13:56 +0000 Subject: [PATCH] Make Path::intersectsLine const --- modules/juce_graphics/geometry/juce_Path.cpp | 2 +- modules/juce_graphics/geometry/juce_Path.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/juce_graphics/geometry/juce_Path.cpp b/modules/juce_graphics/geometry/juce_Path.cpp index 851e65c587..fc809fa206 100644 --- a/modules/juce_graphics/geometry/juce_Path.cpp +++ b/modules/juce_graphics/geometry/juce_Path.cpp @@ -970,7 +970,7 @@ bool Path::contains (Point point, float tolerance) const return contains (point.x, point.y, tolerance); } -bool Path::intersectsLine (Line line, float tolerance) +bool Path::intersectsLine (Line line, float tolerance) const { PathFlatteningIterator i (*this, AffineTransform(), tolerance); Point intersection; diff --git a/modules/juce_graphics/geometry/juce_Path.h b/modules/juce_graphics/geometry/juce_Path.h index b9a5ee5f7e..893fa435b5 100644 --- a/modules/juce_graphics/geometry/juce_Path.h +++ b/modules/juce_graphics/geometry/juce_Path.h @@ -144,7 +144,7 @@ public: outside the path's boundary. */ bool intersectsLine (Line 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.