MCPcopy Create free account
hub / github.com/anjo76/angelscript / atan2f_generic

Function atan2f_generic

sdk/add_on/scriptmath/scriptmath.cpp:257–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255 *(float*)gen->GetAddressOfReturnLocation() = powf(f1, f2);
256}
257void atan2f_generic(asIScriptGeneric *gen)
258{
259 float f1 = *(float*)gen->GetAddressOfArg(0);
260 float f2 = *(float*)gen->GetAddressOfArg(1);
261 *(float*)gen->GetAddressOfReturnLocation() = atan2f(f1, f2);
262}
263
264#else
265// This macro creates simple generic wrappers for functions of type 'double func(double)'

Callers

nothing calls this directly

Calls 3

atan2fFunction · 0.85
GetAddressOfArgMethod · 0.45

Tested by

no test coverage detected