Translate translates the rect.
(x, y float64)
| 427 | |
| 428 | // Translate translates the rect. |
| 429 | func (r Rect) Translate(x, y float64) Rect { |
| 430 | r.X0 += x |
| 431 | r.Y0 += y |
| 432 | r.X1 += x |
| 433 | r.Y1 += y |
| 434 | return r |
| 435 | } |
| 436 | |
| 437 | // Transform transforms the rectangle by affine transformation matrix m and returns the new bounds of that rectangle. |
| 438 | func (r Rect) Transform(m Matrix) Rect { |
no outgoing calls