Arc returns the arguments for arcs (rx,ry,rot,large,sweep).
()
| 148 | |
| 149 | // Arc returns the arguments for arcs (rx,ry,rot,large,sweep). |
| 150 | func (s *PathReverseScanner) Arc() (float64, float64, float64, bool, bool) { |
| 151 | if s.p.d[s.i] != ArcToCmd { |
| 152 | panic("must be arc") |
| 153 | } |
| 154 | large, sweep := toArcFlags(s.p.d[s.i+4]) |
| 155 | return s.p.d[s.i+1], s.p.d[s.i+2], s.p.d[s.i+3] * 180.0 / math.Pi, large, sweep |
| 156 | } |
| 157 | |
| 158 | // End returns the current path segment end position. |
| 159 | func (s *PathReverseScanner) End() Point { |