MCPcopy Create free account
hub / github.com/cogentcore/core / PathDataNextCmd

Function PathDataNextCmd

svg/path.go:250–254  ·  view source on GitHub ↗

PathDataNextCmd gets the next path data command, incrementing the index -- ++ not an expression so its clunky

(data []PathData, i *int)

Source from the content-addressed store, hash-verified

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

Callers 5

PathDataRenderFunction · 0.85
PathDataIterFuncFunction · 0.85
PathDataValidateFunction · 0.85
PathDataStringFunction · 0.85
ApplyTransformImplMethod · 0.85

Calls 1

CmdMethod · 0.80

Tested by

no test coverage detected