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

Method FromArray

math32/matrix4.go:735–739  ·  view source on GitHub ↗

FromArray set this matrix elements from the array starting at offset. Returns pointer to this updated matrix.

(array []float32, offset int)

Source from the content-addressed store, hash-verified

733// FromArray set this matrix elements from the array starting at offset.
734// Returns pointer to this updated matrix.
735func (m *Matrix4) FromArray(array []float32, offset int) *Matrix4 {
736
737 copy(m[:], array[offset:offset+16])
738 return m
739}
740
741// ToArray copies this matrix elements to array starting at offset.
742// Returns pointer to the updated array.

Callers 1

newNodeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected