Scan scans a new path segment and should be called before the other methods.
()
| 20 | |
| 21 | // Scan scans a new path segment and should be called before the other methods. |
| 22 | func (s *PathScanner) Scan() bool { |
| 23 | if s.i+1 < len(s.p.d) { |
| 24 | s.i += cmdLen(s.p.d[s.i+1]) |
| 25 | return true |
| 26 | } |
| 27 | return false |
| 28 | } |
| 29 | |
| 30 | // Cmd returns the current path segment command. |
| 31 | func (s *PathScanner) Cmd() float64 { |