You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
OUT = LINESEGMENTINTERSECT(XY1,XY2) generates intersection analysis between the line segment sets given in XY1 and XY2. Code can handle coincident and parallel lines.
The main emphasis is on speed. The code is fully vectorized and it runs pretty fast (orders of magnitude) compared to some of the previous postings.
Cite As
U. Murat Erdem (2026). Fast Line Segment Intersection (https://uk.mathworks.com/matlabcentral/fileexchange/27205-fast-line-segment-intersection), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired by: Fast and Robust Curve Intersections
Inspired: Segments Intersection Test Functions, Detection of percolation of nanotubes (straight line)
General Information
- Version 1.1.0.0 (3.5 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
