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

Method Mat_MakeTranslation

extensions/olcPGEX_Graphics3D.h:348–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346 }
347
348 olc::GFX3D::mat4x4 olc::GFX3D::Math::Mat_MakeTranslation(float x, float y, float z)
349 {
350 olc::GFX3D::mat4x4 matrix;
351 matrix.m[0][0] = 1.0f;
352 matrix.m[1][1] = 1.0f;
353 matrix.m[2][2] = 1.0f;
354 matrix.m[3][3] = 1.0f;
355 matrix.m[3][0] = x;
356 matrix.m[3][1] = y;
357 matrix.m[3][2] = z;
358 return matrix;
359 }
360
361 olc::GFX3D::mat4x4 olc::GFX3D::Math::Mat_MakeProjection(float fFovDegrees, float fAspectRatio, float fNear, float fFar)
362 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected