MCPcopy Create free account
hub / github.com/OneLoneCoder/olcPixelGameEngine / Mat_MultiplyMatrix

Method Mat_MultiplyMatrix

extensions/olcPGEX_Graphics3D.h:374–381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372 }
373
374 olc::GFX3D::mat4x4 olc::GFX3D::Math::Mat_MultiplyMatrix(olc::GFX3D::mat4x4 &m1, olc::GFX3D::mat4x4 &m2)
375 {
376 olc::GFX3D::mat4x4 matrix;
377 for (int c = 0; c < 4; c++)
378 for (int r = 0; r < 4; r++)
379 matrix.m[r][c] = m1.m[r][0] * m2.m[0][c] + m1.m[r][1] * m2.m[1][c] + m1.m[r][2] * m2.m[2][c] + m1.m[r][3] * m2.m[3][c];
380 return matrix;
381 }
382
383 olc::GFX3D::mat4x4 olc::GFX3D::Math::Mat_PointAt(olc::GFX3D::vec3d &pos, olc::GFX3D::vec3d &target, olc::GFX3D::vec3d &up)
384 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected