Rank: 22794 based on 0 downloads (last 30 days) and 0 files submitted
photo

Damir

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Damir
Updated File Comments Rating
06 Mar 2009 Curve Intersect 2 Finds the intersection points between two arbitrary polygons. Author: Sebastian Hölz

It is an excelent job, however I found a bug. The function finds wrong intersection, if one of the curves is almost vertical. Please try this:
x1=[0.1 0.1+1e-17]
y1=[-1 1]
x2=[-1 1]
y2=[-1 1]
[x,y]=curveintersect(x1,y1,x2,y2)
plot(x1,y1,'k',x2,y2,'b:',x,y,'ro')

Contact us at files@mathworks.com