Expand expands the rectangle.
(d float64)
| 467 | |
| 468 | // Expand expands the rectangle. |
| 469 | func (r Rect) Expand(d float64) Rect { |
| 470 | r.X0 -= d |
| 471 | r.Y0 -= d |
| 472 | r.X1 += d |
| 473 | r.Y1 += d |
| 474 | return r |
| 475 | } |
| 476 | |
| 477 | // ContainsPoint returns true if the rectangle contains or touches an edge. |
| 478 | func (r Rect) ContainsPoint(p Point) bool { |
nothing calls this directly
no outgoing calls
no test coverage detected