MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / math_atan

Function math_atan

lib/lua/src/lmathlib.c:65–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65static int math_atan (lua_State *L) {
66 lua_Number y = luaL_checknumber(L, 1);
67 lua_Number x = luaL_optnumber(L, 2, 1);
68 lua_pushnumber(L, l_mathop(atan2)(y, x));
69 return 1;
70}
71
72
73static 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