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

Function HMM_Cross

HandmadeMath.h:966–976  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

964
965COVERAGE(HMM_Cross, 1)
966static inline HMM_Vec3 HMM_Cross(HMM_Vec3 Left, HMM_Vec3 Right)
967{
968 ASSERT_COVERED(HMM_Cross);
969
970 HMM_Vec3 Result;
971 Result.X = (Left.Y * Right.Z) - (Left.Z * Right.Y);
972 Result.Y = (Left.Z * Right.X) - (Left.X * Right.Z);
973 Result.Z = (Left.X * Right.Y) - (Left.Y * Right.X);
974
975 return Result;
976}
977
978
979/*

Callers 7

HMM_DeterminantM3Function · 0.85
HMM_InvGeneralM3Function · 0.85
HMM_DeterminantM4Function · 0.85
HMM_InvGeneralM4Function · 0.85
HMM_LookAt_RHFunction · 0.85
HMM_LookAt_LHFunction · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected