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

Function HMM_MulM3F

HandmadeMath.h:1377–1394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1375
1376COVERAGE(HMM_MulM3F, 1)
1377static inline HMM_Mat3 HMM_MulM3F(HMM_Mat3 Matrix, float Scalar)
1378{
1379 ASSERT_COVERED(HMM_MulM3F);
1380
1381 HMM_Mat3 Result;
1382
1383 Result.Elements[0][0] = Matrix.Elements[0][0] * Scalar;
1384 Result.Elements[0][1] = Matrix.Elements[0][1] * Scalar;
1385 Result.Elements[0][2] = Matrix.Elements[0][2] * Scalar;
1386 Result.Elements[1][0] = Matrix.Elements[1][0] * Scalar;
1387 Result.Elements[1][1] = Matrix.Elements[1][1] * Scalar;
1388 Result.Elements[1][2] = Matrix.Elements[1][2] * Scalar;
1389 Result.Elements[2][0] = Matrix.Elements[2][0] * Scalar;
1390 Result.Elements[2][1] = Matrix.Elements[2][1] * Scalar;
1391 Result.Elements[2][2] = Matrix.Elements[2][2] * Scalar;
1392
1393 return Result;
1394}
1395
1396COVERAGE(HMM_DivM3, 1)
1397static inline HMM_Mat3 HMM_DivM3F(HMM_Mat3 Matrix, float Scalar)

Callers 3

HMM_MulFunction · 0.85
operator*Function · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected