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

Function HMM_LookAt_LH

HandmadeMath.h:2029–2038  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2027
2028COVERAGE(HMM_LookAt_LH, 1)
2029static inline HMM_Mat4 HMM_LookAt_LH(HMM_Vec3 Eye, HMM_Vec3 Center, HMM_Vec3 Up)
2030{
2031 ASSERT_COVERED(HMM_LookAt_LH);
2032
2033 HMM_Vec3 F = HMM_NormV3(HMM_SubV3(Eye, Center));
2034 HMM_Vec3 S = HMM_NormV3(HMM_Cross(F, Up));
2035 HMM_Vec3 U = HMM_Cross(S, F);
2036
2037 return _HMM_LookAt(F, S, U, Eye);
2038}
2039
2040COVERAGE(HMM_InvLookAt, 1)
2041static inline HMM_Mat4 HMM_InvLookAt(HMM_Mat4 Matrix)

Callers 2

TESTFunction · 0.85
TESTFunction · 0.85

Calls 4

HMM_NormV3Function · 0.85
HMM_SubV3Function · 0.85
HMM_CrossFunction · 0.85
_HMM_LookAtFunction · 0.85

Tested by

no test coverage detected