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

Method Mat_MakeScale

extensions/olcPGEX_Graphics3D.h:338–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336 }
337
338 olc::GFX3D::mat4x4 olc::GFX3D::Math::Mat_MakeScale(float x, float y, float z)
339 {
340 olc::GFX3D::mat4x4 matrix;
341 matrix.m[0][0] = x;
342 matrix.m[1][1] = y;
343 matrix.m[2][2] = z;
344 matrix.m[3][3] = 1.0f;
345 return matrix;
346 }
347
348 olc::GFX3D::mat4x4 olc::GFX3D::Math::Mat_MakeTranslation(float x, float y, float z)
349 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected