1 /* This file is part of the Spring engine (GPL v2 or later), see LICENSE.html */ 2 3 #ifndef LUA_MATH_EXTRA_H 4 #define LUA_MATH_EXTRA_H 5 6 struct lua_State; 7 8 class LuaMathExtra { 9 public: 10 static bool PushEntries(lua_State* L); 11 12 private: 13 static int hypot(lua_State* L); 14 static int diag(lua_State* L); 15 static int clamp(lua_State* L); 16 static int sgn(lua_State* L); 17 static int mix(lua_State* L); 18 static int round(lua_State* L); 19 static int erf(lua_State* L); 20 static int smoothstep(lua_State* L); 21 }; 22 23 #endif /* LUA_MATH_EXTRA_H */ 24 25