Fast Line Segment Intersection
by U. Murat Erdem
08 Apr 2010
(Updated 10 Apr 2010)
Finds the pairwise intersection points between line segments in 2D Cartesian space.
|
Watch this File
|
| File Information |
| Description |
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. |
| Acknowledgements |
The author wishes to acknowledge the following in the creation of this submission:
Fast and Robust Curve Intersections
This submission has inspired the following:
Segments Intersection Test Functions
|
| MATLAB release |
MATLAB 7.9 (2009b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 10 Apr 2010 |
Changed the input parameters and the output structure. Now the analysis can be done between two sets of line segments. Analysis also provides more information about the intersections.
Please see the CHANGELOG in the comments. |
|
Contact us at files@mathworks.com