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

Function PathDataNext

svg/path.go:221–225  ·  view source on GitHub ↗

PathDataNext gets the next path data point, incrementing the index

(data []PathData, i *int)

Source from the content-addressed store, hash-verified

219
220// PathDataNext gets the next path data point, incrementing the index
221func PathDataNext(data []PathData, i *int) float32 {
222 pd := data[*i]
223 (*i)++
224 return float32(pd)
225}
226
227// PathDataNextVector gets the next 2 path data points as a vector
228func PathDataNextVector(data []PathData, i *int) math32.Vector2 {

Callers 5

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

Calls

no outgoing calls

Tested by

no test coverage detected