ContainsPoint returns true if the rectangle contains or touches an edge.
(p Point)
| 476 | |
| 477 | // ContainsPoint returns true if the rectangle contains or touches an edge. |
| 478 | func (r Rect) ContainsPoint(p Point) bool { |
| 479 | return cohenSutherlandOutcode(r, p, 0.0) == 0 |
| 480 | } |
| 481 | |
| 482 | // TouchesPoint returns true if the rectangle touches a point (within +-Epsilon). |
| 483 | func (r Rect) TouchesPoint(p Point) bool { |