Contains returns true if r contains q.
(q Rect)
| 562 | |
| 563 | // Contains returns true if r contains q. |
| 564 | func (r Rect) Contains(q Rect) bool { |
| 565 | return r.X0 <= q.X0 && q.X1 <= r.X1 && r.Y0 <= q.Y0 && q.Y1 <= r.Y1 |
| 566 | } |
| 567 | |
| 568 | // Overlaps returns true if both rectangles overlap. |
| 569 | func (r Rect) Overlaps(q Rect) bool { |
no outgoing calls