S2Polyline.intersects

Return true if this polyline intersects the given polyline. If the polylines share a vertex they are considered to be intersecting. When a polyline endpoint is the only intersection with the other polyline, the function may return true or false arbitrarily.

The running time is quadratic in the number of vertices. (To intersect polylines more efficiently, or compute the actual intersection geometry, use S2BooleanOperation.)

class S2Polyline
bool
intersects

Meta