mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
acos Lua exposure
This commit is contained in:
parent
e5453f97b7
commit
bf5ca10652
1 changed files with 7 additions and 0 deletions
|
|
@ -86,6 +86,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
|
||||||
////////////////
|
////////////////
|
||||||
|
|
||||||
|
|
@ -184,6 +190,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},
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue