INTERSECTEDGES Return all intersections between two set of edges. P = intersectEdges(E1, E2); returns the intersection point of edges E1 and E2. E1 and E2 are 1-by-4 arrays, containing parametric representation of each edge (in the form [x1 y1 x2 y2], see 'createEdge' for details). In case of colinear edges, the result P contains [Inf Inf]. In case of parallel but not colinear edges, the result P contains [NaN NaN]. If each input is N-by-4 array, the result is a N-by-2 array containing the intersection of each couple of edges. If one of the input has N rows and the other 1 row, the result is a N-by-2 array. P = intersectEdges(E1, E2, TOL); Specifies a tolerance parameter to determine parallel and colinear edges, and if a point belongs to an edge or not. The latter test is performed on the relative position of the intersection point over the edge, that should lie within [-TOL; 1+TOL]. See also: edges2d, intersectLines
Package: matgeom