Relate returns the spatial relation as defined by DE-9IM between the two paths as well as the intersections between both. It is faster if you need to check multiple spatial relations and/or retrieve the intersections.
(q *Path)
| 225 | // Relate returns the spatial relation as defined by DE-9IM between the two paths as well as the intersections between both. It is |
| 226 | // faster if you need to check multiple spatial relations and/or retrieve the intersections. |
| 227 | func (p *Path) Relate(q *Path) (Relation, []Point) { |
| 228 | return relate(p.Split(), q.Split(), true) |
| 229 | } |
| 230 | |
| 231 | // Intersections returns a list of points of all intersections of path p with q. The intersection can be tangent (touch) or secant |
| 232 | // (cross). If the two paths are partially coincident it will return an intersection at the start and end. Equal paths have no |