MCPcopy Create free account
hub / github.com/DFHack/dfhack / math_atan

Function math_atan

depends/lua/src/lmathlib.c:75–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75static int math_atan (lua_State *L) {
76 lua_Number y = luaL_checknumber(L, 1);
77 lua_Number x = luaL_optnumber(L, 2, 1);
78 lua_pushnumber(L, l_mathop(atan2)(y, x));
79 return 1;
80}
81
82
83static int math_toint (lua_State *L) {

Callers

nothing calls this directly

Calls 3

luaL_checknumberFunction · 0.85
luaL_optnumberFunction · 0.85
lua_pushnumberFunction · 0.85

Tested by

no test coverage detected