MCPcopy
hub / github.com/g3n/engine / Set

Method Set

math32/array.go:156–161  ·  view source on GitHub ↗

Set sets the values of the array starting at the specified pos from the specified values

(pos int, v ...float32)

Source from the content-addressed store, hash-verified

154// Set sets the values of the array starting at the specified pos
155// from the specified values
156func (a ArrayF32) Set(pos int, v ...float32) {
157
158 for i := 0; i < len(v); i++ {
159 a[pos+i] = v[i]
160 }
161}
162
163// SetVector2 sets the values of the array at the specified pos
164// from the XY values of the specified Vector2

Callers 1

NewSphereSectorFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected