mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
You probably don't want to memorise the formula to convert arccos to arcsin so
This commit is contained in:
parent
a6d921e37c
commit
96976fdba3
1 changed files with 7 additions and 0 deletions
|
|
@ -88,6 +88,12 @@ static int lib_finetangent(lua_State *L)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static int lib_fixedasin(lua_State *L)
|
||||
{
|
||||
lua_pushangle(L, -FixedAcos(luaL_checkfixed(L, 1)) + ANGLE_90);
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int lib_fixedacos(lua_State *L)
|
||||
{
|
||||
lua_pushangle(L, FixedAcos(luaL_checkfixed(L, 1)));
|
||||
|
|
@ -192,6 +198,7 @@ static luaL_Reg lib_math[] = {
|
|||
{"sin", lib_finesine},
|
||||
{"cos", lib_finecosine},
|
||||
{"tan", lib_finetangent},
|
||||
{"asin", lib_fixedasin},
|
||||
{"acos", lib_fixedacos},
|
||||
{"FixedAngle", lib_fixedangle},
|
||||
{"fixangle" , lib_fixedangle},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue