MCPcopy Create free account
hub / github.com/WheretIB/nullc / reflect

Function reflect

NULLC/translation/std_math.cpp:2871–2874  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2869 return __nullcCheckedRet(__nullcTR[121], (*(&a_0)), (void*)&a_0, (void*)&xyzw_4, (void*)&unused, 0);
2870}
2871float3 reflect(float3 normal_0, float3 dir_12, void* unused)
2872{
2873 return __operatorSub(*(&dir_12), __operatorMul((float )((2.000000) * (double )(dot(&normal_0, &dir_12, (void*)0))), *(&normal_0), (void*)0), (void*)0);
2874}
2875int __init_std_math_nc()
2876{
2877 static int moduleInitialized = 0;

Callers

nothing calls this directly

Calls 3

__operatorSubFunction · 0.85
__operatorMulFunction · 0.85
dotFunction · 0.70

Tested by

no test coverage detected