Contains returns true if the interior of p contains the interior of q. Equal shapes contain each other. If p contains q, then q is within p. This tests DE-9IM's Covers relation.
(q *Path)
| 255 | // Contains returns true if the interior of p contains the interior of q. Equal shapes contain |
| 256 | // each other. If p contains q, then q is within p. This tests DE-9IM's Covers relation. |
| 257 | func (p *Path) Contains(q *Path) bool { |
| 258 | rel, _ := relate(p.Split(), q.Split(), false) |
| 259 | return rel.Covers() |
| 260 | } |
| 261 | |
| 262 | // SweepPoint is of size 88 bytes on 64-bit architectures |
| 263 | type SweepPoint struct { |