PathDataNextCmd gets the next path data command, incrementing the index -- ++ not an expression so its clunky
(data []PathData, i *int)
| 248 | // PathDataNextCmd gets the next path data command, incrementing the index -- ++ |
| 249 | // not an expression so its clunky |
| 250 | func PathDataNextCmd(data []PathData, i *int) (PathCmds, int) { |
| 251 | pd := data[*i] |
| 252 | (*i)++ |
| 253 | return pd.Cmd() |
| 254 | } |
| 255 | |
| 256 | func reflectPt(pt, rp math32.Vector2) math32.Vector2 { |
| 257 | return pt.MulScalar(2).Sub(rp) |
no test coverage detected