Fast Line Segment Intersection

Finds the pairwise intersection points between line segments in 2D Cartesian space.

您现在正在关注此提交

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 (2026). Fast Line Segment Intersection (https://ww2.mathworks.cn/matlabcentral/fileexchange/27205-fast-line-segment-intersection), MATLAB Central File Exchange. 检索时间: .

类别

Help CenterMATLAB Answers 中查找有关 Polygonal Shapes 的更多信息

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.1.0.0

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.

1.0.0.0