intplines (<pointsA>,<pointsB> {,<num>} )
point
The intersection points of two polylines, defined by point vertices.
<pointsA>
Points defining the vertices of the first polyline.
<pointsB>
Points defining the vertices of the second polyline. If this is an empty
array then intersections between <pointsA>
and itself are found.
<num>
A nearness tolerance used during point comparison,
if omitted the default is 0.0000001.
Resulting intersection points are ordered as they occur along the first polyline.
Define 2 polylines interactively, then compute their intersection points.
entity pl1 = lines {pseries -rub} entity pl2 = lines {pseries -rub} point xs[] = intplines(pl1.vertex,pl2.vertex)
Define a polyline interactively, then compute any crossover points.
entity mypoly = lines {pseries -rub} point xs[] = intplines(mypoly.vertex,<>)
Functions: |