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

Function HMM_Scale

HandmadeMath.h:1964–1974  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1962
1963COVERAGE(HMM_Scale, 1)
1964static inline HMM_Mat4 HMM_Scale(HMM_Vec3 Scale)
1965{
1966 ASSERT_COVERED(HMM_Scale);
1967
1968 HMM_Mat4 Result = HMM_M4D(1.0f);
1969 Result.Elements[0][0] = Scale.X;
1970 Result.Elements[1][1] = Scale.Y;
1971 Result.Elements[2][2] = Scale.Z;
1972
1973 return Result;
1974}
1975
1976COVERAGE(HMM_InvScale, 1)
1977static inline HMM_Mat4 HMM_InvScale(HMM_Mat4 ScaleMatrix)

Callers 2

TESTFunction · 0.85
TESTFunction · 0.85

Calls 1

HMM_M4DFunction · 0.85

Tested by

no test coverage detected