MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / Sin

Method Sin

LuaSTGPlus/LuaWrapper.cpp:1743–1747  ·  view source on GitHub ↗

内置数学库

Source from the content-addressed store, hash-verified

1741
1742 // 内置数学库
1743 static int Sin(lua_State* L)LNOEXCEPT
1744 {
1745 lua_pushnumber(L, sin(luaL_checknumber(L, 1) * LDEGREE2RAD));
1746 return 1;
1747 }
1748 static int Cos(lua_State* L)LNOEXCEPT
1749 {
1750 lua_pushnumber(L, cos(luaL_checknumber(L, 1) * LDEGREE2RAD));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected