Fast Line Segment Intersection

版本 (3.5 KB) 作者: U. Murat Erdem
Finds the pairwise intersection points between line segments in 2D Cartesian space.
7.7K 次下载
更新时间 2010/4/10


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.


U. Murat Erdem (2024). Fast Line Segment Intersection (, MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2009b
Windows macOS Linux
Help CenterMATLAB Answers 中查找有关 Elementary Polygons 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明

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.