Covers returns true if at least one point of the second shape lies in the first, and no points of the second lie in the exterior of the first, including boundaries. It is similar to Contains but includes lines on the boundary of an area.
()
| 2480 | // of the second lie in the exterior of the first, including boundaries. It is similar to Contains |
| 2481 | // but includes lines on the boundary of an area. |
| 2482 | func (rel Relation) Covers() bool { |
| 2483 | return (rel&0x1B) != 0 && (rel&0xC0) == 0 // Covers |
| 2484 | } |
| 2485 | |
| 2486 | // CoveredBy is the same as Covers but with the shapes swapped. |
| 2487 | func (rel Relation) CoveredBy() bool { |
no outgoing calls