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

Function NewArrayF32

math32/array.go:16–19  ·  view source on GitHub ↗

NewArrayF32 creates a returns a new array of floats with the specified initial size and capacity

(size, capacity int)

Source from the content-addressed store, hash-verified

14// NewArrayF32 creates a returns a new array of floats
15// with the specified initial size and capacity
16func NewArrayF32(size, capacity int) ArrayF32 {
17
18 return make([]float32, size, capacity)
19}
20
21// Bytes returns the size of the array in bytes
22func (a *ArrayF32) Bytes() int {

Callers 15

NewSpriteFunction · 0.92
NewSegmentedPlaneFunction · 0.92
NewDiskSectorFunction · 0.92
NewRibbonFunction · 0.92
NewSphereSectorFunction · 0.92
NewSegmentedBoxFunction · 0.92
NewTruncatedConeSectorFunction · 0.92
NewTorusFunction · 0.92
newChartScaleXFunction · 0.92
newChartScaleYFunction · 0.92
newGraphFunction · 0.92
updateDataMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected