|
@@ -67,6 +67,7 @@ static void RegisterMathFunctions(asIScriptEngine* engine)
|
|
|
engine->RegisterGlobalProperty("const float M_INFINITY", (void*)&M_INFINITY);
|
|
engine->RegisterGlobalProperty("const float M_INFINITY", (void*)&M_INFINITY);
|
|
|
engine->RegisterGlobalProperty("const float M_EPSILON", (void*)&M_EPSILON);
|
|
engine->RegisterGlobalProperty("const float M_EPSILON", (void*)&M_EPSILON);
|
|
|
|
|
|
|
|
|
|
+ engine->RegisterGlobalFunction("bool Equals(float, float)", asFUNCTION(Equals), asCALL_CDECL);
|
|
|
engine->RegisterGlobalFunction("float Sin(float)", asFUNCTION(Sin), asCALL_CDECL);
|
|
engine->RegisterGlobalFunction("float Sin(float)", asFUNCTION(Sin), asCALL_CDECL);
|
|
|
engine->RegisterGlobalFunction("float Cos(float)", asFUNCTION(Cos), asCALL_CDECL);
|
|
engine->RegisterGlobalFunction("float Cos(float)", asFUNCTION(Cos), asCALL_CDECL);
|
|
|
engine->RegisterGlobalFunction("float Tan(float)", asFUNCTION(Tan), asCALL_CDECL);
|
|
engine->RegisterGlobalFunction("float Tan(float)", asFUNCTION(Tan), asCALL_CDECL);
|