Fast and Robust Self-Intersections

版本 1.0.0.0 (3.4 KB) 作者: Antoni J. Canós
Computes the self-intersections of a curve.
2.6K 次下载
更新时间 2006/12/13

查看许可证

This function computes the locations where a curve self-intersects in a fast and robust way. The curve can be broken with NaNs or have vertical segments. Segments of the curve involved in each of the self-interesections are also provided.

Example of use:
N=201;
th=linspace(-3*pi,4*pi,N);
R=1;
x=R*cos(th)+linspace(0,6,N);
y=R*sin(th)+linspace(0,1,N);
t0=clock;
[x0,y0,segments]=selfintersect(x,y)
etime(clock,t0)
plot(x,y,'b',x0,y0,'.r');
axis ('equal'); grid

引用格式

Antoni J. Canós (2026). Fast and Robust Self-Intersections (https://ww2.mathworks.cn/matlabcentral/fileexchange/13351-fast-and-robust-self-intersections), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R13
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Interpolation 的更多信息
版本 已发布 发行说明
1.0.0.0