Segments Intersection Test Functions
Version 1.0.0.0 (9.63 KB) by
Francesco Montorsi
Functions that count the intersections among 2-D segments. Special cases are accounted for.
These routines count the number of intersections among 2-D segments.
With easy changes, the routines may also return the intersection point coordinates.
Implementation of the routines is in MEX C code, so that the routines are pretty fast.
Special cases (e.g. collinear, parallel or overlapping segments) are accounted for.
Cite As
Francesco Montorsi (2026). Segments Intersection Test Functions (https://uk.mathworks.com/matlabcentral/fileexchange/35492-segments-intersection-test-functions), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2010b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Mathematics > Sparse Matrices >
Find more on Sparse Matrices in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired by: Fast Line Segment Intersection
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
