From 84e61defd1d91f2a76fecbc2494ad9c5b67652ad Mon Sep 17 00:00:00 2001 From: sotashimozono Date: Sun, 30 Aug 2026 08:49:40 +0000 Subject: [PATCH] Attach the `intersects` docstring --- src/lines.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lines.jl b/src/lines.jl index da06be43..e2a40624 100644 --- a/src/lines.jl +++ b/src/lines.jl @@ -1,12 +1,12 @@ +# 2D Line-segment intersection algorithm by Paul Bourke and many others. +# http://paulbourke.net/geometry/pointlineplane/ """ intersects(a::Line, b::Line) -> Bool, Point Intersection of 2 line segments `a` and `b`. Returns `(intersection_found::Bool, intersection_point::Point)` """ -# 2D Line-segment intersection algorithm by Paul Bourke and many others. -# http://paulbourke.net/geometry/pointlineplane/ function intersects(a::Line{2,T1}, b::Line{2,T2}; eps = 0) where {T1,T2} T = promote_type(T1, T2) p0 = zero(Point2{T})