MCPcopy
hub / github.com/EngoEngine/engo / TestMultipleMatrixVector

Function TestMultipleMatrixVector

math_test.go:1488–1589  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1486}
1487
1488func TestMultipleMatrixVector(t *testing.T) {
1489 data := []struct {
1490 matrix []float32
1491 p, r []float32
1492 }{
1493 {
1494 matrix: []float32{
1495 1, 2, 3,
1496 4, 5, 6,
1497 7, 8, 0,
1498 },
1499 p: []float32{
1500 0,
1501 0,
1502 },
1503 r: []float32{
1504 7,
1505 8,
1506 0,
1507 },
1508 },
1509 {
1510 matrix: []float32{
1511 1, 2, 3,
1512 4, 5, 6,
1513 7, 8, 0,
1514 },
1515 p: []float32{
1516 5,
1517 5,
1518 0,
1519 },
1520 r: []float32{
1521 25,
1522 35,
1523 45,
1524 },
1525 },
1526 {
1527 matrix: []float32{
1528 1, 2, 3,
1529 4, 5, 6,
1530 7, 8, 0,
1531 },
1532 p: []float32{
1533 -5,
1534 -5,
1535 0,
1536 },
1537 r: []float32{
1538 -25,
1539 -35,
1540 -45,
1541 },
1542 },
1543 {
1544 matrix: []float32{
1545 1, 2, 3,

Callers

nothing calls this directly

Calls 4

IdentityMatrixFunction · 0.85
MultiplyMatrixVectorFunction · 0.85
FloatEqualFunction · 0.85
SetMethod · 0.45

Tested by

no test coverage detected