Translate translates the path by (x,y). It modifies the path in-place.
(x, y float64)
| 1342 | |
| 1343 | // Translate translates the path by (x,y). It modifies the path in-place. |
| 1344 | func (p *Path) Translate(x, y float64) *Path { |
| 1345 | return p.Transform(Identity.Translate(x, y)) |
| 1346 | } |
| 1347 | |
| 1348 | // Scale scales the path by (sx,sy). It modifies the path in-place. |
| 1349 | func (p *Path) Scale(sx, sy float64) *Path { |