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

Function TestArrayF32GetMatrix4

math32/array_test.go:13–22  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

11)
12
13func TestArrayF32GetMatrix4(t *testing.T) {
14 a := ArrayF32{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}
15 m := &Matrix4{}
16 pos := 0
17
18 a.GetMatrix4(pos, m)
19
20 expected := Matrix4{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}
21 assert.Equal(t, expected, *m)
22}

Callers

nothing calls this directly

Calls 2

GetMatrix4Method · 0.95
EqualMethod · 0.80

Tested by

no test coverage detected