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

Function HMM_LookAt_RH

HandmadeMath.h:2017–2026  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2015
2016COVERAGE(HMM_LookAt_RH, 1)
2017static inline HMM_Mat4 HMM_LookAt_RH(HMM_Vec3 Eye, HMM_Vec3 Center, HMM_Vec3 Up)
2018{
2019 ASSERT_COVERED(HMM_LookAt_RH);
2020
2021 HMM_Vec3 F = HMM_NormV3(HMM_SubV3(Center, Eye));
2022 HMM_Vec3 S = HMM_NormV3(HMM_Cross(F, Up));
2023 HMM_Vec3 U = HMM_Cross(S, F);
2024
2025 return _HMM_LookAt(F, S, U, Eye);
2026}
2027
2028COVERAGE(HMM_LookAt_LH, 1)
2029static inline HMM_Mat4 HMM_LookAt_LH(HMM_Vec3 Eye, HMM_Vec3 Center, HMM_Vec3 Up)

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