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

Method GetMatrix4

math32/array.go:115–132  ·  view source on GitHub ↗

GetMatrix4 stores in the specified Matrix4 the values from the array starting at the specified pos.

(pos int, m *Matrix4)

Source from the content-addressed store, hash-verified

113// GetMatrix4 stores in the specified Matrix4 the
114// values from the array starting at the specified pos.
115func (a ArrayF32) GetMatrix4(pos int, m *Matrix4) {
116 m[0] = a[pos]
117 m[1] = a[pos+1]
118 m[2] = a[pos+2]
119 m[3] = a[pos+3]
120 m[4] = a[pos+4]
121 m[5] = a[pos+5]
122 m[6] = a[pos+6]
123 m[7] = a[pos+7]
124 m[8] = a[pos+8]
125 m[9] = a[pos+9]
126 m[10] = a[pos+10]
127 m[11] = a[pos+11]
128 m[12] = a[pos+12]
129 m[13] = a[pos+13]
130 m[14] = a[pos+14]
131 m[15] = a[pos+15]
132}
133
134// Set sets the values of the array starting at the specified pos
135// from the specified values

Callers 1

TestArrayF32GetMatrix4Function · 0.95

Calls

no outgoing calls

Tested by 1

TestArrayF32GetMatrix4Function · 0.76