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