diff --git a/intersect.lua b/intersect.lua index aff416a..ec0134c 100644 --- a/intersect.lua +++ b/intersect.lua @@ -110,7 +110,7 @@ end --overlap a line segment with a circle function intersect.line_circle_overlap(a_start, a_end, a_rad, b_pos, b_rad) - local nearest = intersect._line_to_point(a_start, a_end, b_pos, vec2:pooled()) + local nearest = intersect.nearest_point_on_line(a_start, a_end, b_pos, vec2:pooled()) local overlapped = intersect.circle_point_overlap(b_pos, a_rad + b_rad, nearest) nearest:release() return overlapped