Skip to content
Snippets Groups Projects
Commit 4f3802a2 authored by Golden's avatar Golden
Browse files

acos Lua exposure

parent bcd3245b
No related branches found
No related tags found
1 merge request!1455arccosine Lua exposure
...@@ -87,6 +87,12 @@ static int lib_finetangent(lua_State *L) ...@@ -87,6 +87,12 @@ static int lib_finetangent(lua_State *L)
return 1; return 1;
} }
static int lib_finearccosine(lua_State *L)
{
lua_pushangle(L, FixedAcos(luaL_checkfixed(L, 1)));
return 1;
}
// Fixed math // Fixed math
//////////////// ////////////////
...@@ -192,6 +198,7 @@ static luaL_Reg lib[] = { ...@@ -192,6 +198,7 @@ static luaL_Reg lib[] = {
{"sin", lib_finesine}, {"sin", lib_finesine},
{"cos", lib_finecosine}, {"cos", lib_finecosine},
{"tan", lib_finetangent}, {"tan", lib_finetangent},
{"acos", lib_finearccosine},
{"FixedAngle", lib_fixedangle}, {"FixedAngle", lib_fixedangle},
{"fixangle" , lib_fixedangle}, {"fixangle" , lib_fixedangle},
{"AngleFixed", lib_anglefixed}, {"AngleFixed", lib_anglefixed},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment