Equestrian
Add news
News

Intersection points for lines or polygon edges

Intersection points for lines or polygon edgescollapse all in pageSyntax[xi,yi] = polyxpoly(x1,y1,x2,y2)[xi,yi,ii] = polyxpoly(___)[xi,yi] = polyxpoly(___,'unique')Descriptionexample[xi,yi] = polyxpoly(x1,y1,x2,y2) returns the intersection points of two polylines in a planar, Cartesian system, with vertices defined by x1, y1, x2 and y2. The output arguments, xi and yi, contain the x- and y-coordinates of each point at which a segment of the first polyline intersects a segment of the second. In the case of overlapping, collinear segments, the intersection is actually a line segment rather than a point, and both endpoints are included in xi, yi.[xi,yi,ii] = polyxpoly(___) returns a two-column array of line segment indices corresponding to the intersection points. The k-th row of ii indicates which polyline segments give rise to the intersection point xi(k), yi(k).To remember how these indices work, just think of segments and vertices as fence sections and posts. The i-th fence section co...

Comments

Комментарии для сайта Cackle
Загрузка...

More news:

Read on Sportsweek.org:

Tonkawood Farm
The Shire Horse Society
Tonkawood Farm

Other sports

Sponsored