ToPath converts the rectangle to a path.
()
| 604 | |
| 605 | // ToPath converts the rectangle to a path. |
| 606 | func (r Rect) ToPath() *Path { |
| 607 | return Rectangle(r.X1-r.X0, r.Y1-r.Y0).Translate(r.X0, r.Y0) |
| 608 | } |
| 609 | |
| 610 | // String returns a string representation of r such as "(xmin,ymin)-(xmax,ymax)". |
| 611 | func (r Rect) String() string { |