MCPcopy Index your code
hub / github.com/HandmadeMath/HandmadeMath / HMM_Translate

Function HMM_Translate

HandmadeMath.h:1895–1905  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1893
1894COVERAGE(HMM_Translate, 1)
1895static inline HMM_Mat4 HMM_Translate(HMM_Vec3 Translation)
1896{
1897 ASSERT_COVERED(HMM_Translate);
1898
1899 HMM_Mat4 Result = HMM_M4D(1.0f);
1900 Result.Elements[3][0] = Translation.X;
1901 Result.Elements[3][1] = Translation.Y;
1902 Result.Elements[3][2] = Translation.Z;
1903
1904 return Result;
1905}
1906
1907COVERAGE(HMM_InvTranslate, 1)
1908static inline HMM_Mat4 HMM_InvTranslate(HMM_Mat4 TranslationMatrix)

Callers 2

TESTFunction · 0.85
TESTFunction · 0.85

Calls 1

HMM_M4DFunction · 0.85

Tested by

no test coverage detected