MCPcopy Index your code
hub / github.com/EngoEngine/engo / TestMultiplyMatrixPoint

Function TestMultiplyMatrixPoint

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

Source from the content-addressed store, hash-verified

1395}
1396
1397func TestMultiplyMatrixPoint(t *testing.T) {
1398 data := []struct {
1399 matrix []float32
1400 p, r Point
1401 }{
1402 {
1403 matrix: []float32{
1404 1, 2, 3,
1405 4, 5, 6,
1406 7, 8, 0,
1407 },
1408 p: Point{
1409 X: 0,
1410 Y: 0,
1411 },
1412 r: Point{
1413 X: 7,
1414 Y: 8,
1415 },
1416 },
1417 {
1418 matrix: []float32{
1419 1, 2, 3,
1420 4, 5, 6,
1421 7, 8, 0,
1422 },
1423 p: Point{
1424 X: 5,
1425 Y: 5,
1426 },
1427 r: Point{
1428 X: 32,
1429 Y: 43,
1430 },
1431 },
1432 {
1433 matrix: []float32{
1434 1, 2, 3,
1435 4, 5, 6,
1436 7, 8, 0,
1437 },
1438 p: Point{
1439 X: -5,
1440 Y: -5,
1441 },
1442 r: Point{
1443 X: -18,
1444 Y: -27,
1445 },
1446 },
1447 {
1448 matrix: []float32{
1449 1, 2, 3,
1450 4, 5, 6,
1451 7, 8, 0,
1452 },
1453 p: Point{
1454 X: -5,

Callers

nothing calls this directly

Calls 4

IdentityMatrixFunction · 0.85
MultiplyMatrixVectorMethod · 0.80
EqualMethod · 0.80
SetMethod · 0.45

Tested by

no test coverage detected