Beispiel #1
0
static int math_atan (lua_State *L) {
  lua_pushnumber(L, FROMRAD(atan(luaL_check_number(L, 1))));
  return 1;
}
Beispiel #2
0
static void math_atan2 (void)
{
  lua_pushnumber(FROMRAD(atan2(luaL_check_number(1), luaL_check_number(2))));
}
Beispiel #3
0
static void math_atan() {
	lua_pushnumber(FROMRAD(atan(luaL_check_number(1))));
}
Beispiel #4
0
static void math_acos (void)
{
  lua_pushnumber(FROMRAD(acos(luaL_check_number(1))));
}