MCPcopy Create free account
hub / github.com/tdewolff/canvas / NewPathFromData

Function NewPathFromData

path.go:136–138  ·  view source on GitHub ↗

NewPathFromData returns a new path using the raw data.

(d []float64)

Source from the content-addressed store, hash-verified

134
135// NewPathFromData returns a new path using the raw data.
136func NewPathFromData(d []float64) *Path {
137 return &Path{d}
138}
139
140// Reset clears the path but retains the same memory. This can be used in loops where you append
141// and process paths every iteration, and avoid new memory allocations.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected