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

Function HMM_Orthographic_LH_NO

HandmadeMath.h:1752–1760  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1750// Left, Right, Bottom, and Top specify the coordinates of their respective clipping planes.
1751// Near and Far specify the distances to the near and far clipping planes.
1752static inline HMM_Mat4 HMM_Orthographic_LH_NO(float Left, float Right, float Bottom, float Top, float Near, float Far)
1753{
1754 ASSERT_COVERED(HMM_Orthographic_LH_NO);
1755
1756 HMM_Mat4 Result = HMM_Orthographic_RH_NO(Left, Right, Bottom, Top, Near, Far);
1757 Result.Elements[2][2] = -Result.Elements[2][2];
1758
1759 return Result;
1760}
1761
1762COVERAGE(HMM_Orthographic_LH_ZO, 1)
1763// Produces a left-handed orthographic projection matrix with Z ranging from 0 to 1 (the DirectX convention).

Callers 2

TESTFunction · 0.85
TESTFunction · 0.85

Calls 1

HMM_Orthographic_RH_NOFunction · 0.85

Tested by

no test coverage detected