(attrs string)
| 107 | } |
| 108 | |
| 109 | func (r *RotatedRectangle) SVG(attrs string) string { |
| 110 | return fmt.Sprintf( |
| 111 | "<g transform=\"translate(%d %d) rotate(%d) scale(%d %d)\"><rect %s x=\"-0.5\" y=\"-0.5\" width=\"1\" height=\"1\" /></g>", |
| 112 | r.X, r.Y, r.Angle, r.Sx, r.Sy, attrs) |
| 113 | } |
| 114 | |
| 115 | func (r *RotatedRectangle) Copy() Shape { |
| 116 | a := *r |
nothing calls this directly
no outgoing calls
no test coverage detected