ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

lmathlib.cpp File Reference

#include "engines/grim/lua/lauxlib.h"
#include "engines/grim/lua/lua.h"
#include "engines/grim/lua/lualib.h"
Include dependency graph for lmathlib.cpp:

Go to the source code of this file.

Namespaces

namespace  Grim

Defines

#define FORBIDDEN_SYMBOL_EXCEPTION_rand
#define FORBIDDEN_SYMBOL_EXCEPTION_srand
#define LOCAL_PI   (3.14159265358979323846)
#define FROMRAD(a)   ((a) * (180.0 / LOCAL_PI))
#define TORAD(a)   ((a) * (LOCAL_PI / 180.0))

Functions

static void Grim::math_abs ()
static void Grim::math_sin ()
static void Grim::math_cos ()
static void Grim::math_tan ()
static void Grim::math_asin ()
static void Grim::math_acos ()
static void Grim::math_atan ()
static void Grim::math_ceil ()
static void Grim::math_floor ()
static void Grim::math_mod ()
static void Grim::math_sqrt ()
static void Grim::math_pow ()
static void Grim::math_deg ()
static void Grim::math_rad ()
static void Grim::math_min ()
static void Grim::math_max ()
static void Grim::math_random ()
static void Grim::math_randomseed ()
void Grim::lua_mathlibopen ()

Variables

static struct luaL_reg Grim::mathlib []
static luaL_reg Grim::powFunc []

Define Documentation

#define FORBIDDEN_SYMBOL_EXCEPTION_rand

Definition at line 6 of file lmathlib.cpp.

#define FORBIDDEN_SYMBOL_EXCEPTION_srand

Definition at line 7 of file lmathlib.cpp.

#define FROMRAD (   a  )     ((a) * (180.0 / LOCAL_PI))

Definition at line 19 of file lmathlib.cpp.

#define LOCAL_PI   (3.14159265358979323846)

Definition at line 16 of file lmathlib.cpp.

#define TORAD (   a  )     ((a) * (LOCAL_PI / 180.0))

Definition at line 20 of file lmathlib.cpp.



Generated on Sat May 25 2019 05:02:21 for ResidualVM by doxygen 1.7.1
curved edge   curved edge