MCPcopy Index your code
hub / github.com/g3n/engine / GetMatrix4

Method GetMatrix4

math32/array.go:115–133  ·  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
117 m[0] = a[pos]
118 m[1] = a[pos+1]
119 m[2] = a[pos+2]
120 m[3] = a[pos+3]
121 m[4] = a[pos+4]
122 m[5] = a[pos+5]
123 m[6] = a[pos+6]
124 m[7] = a[pos+7]
125 m[8] = a[pos+8]
126 m[9] = a[pos+9]
127 m[10] = a[pos+10]
128 m[11] = a[pos+11]
129 m[12] = a[pos+12]
130 m[13] = a[pos+13]
131 m[14] = a[pos+14]
132 m[15] = a[pos+15]
133}
134
135// GetColor stores in the specified Color the
136// values from the array starting at the specified pos

Callers 1

LoadSkinMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected