21 #ifndef _MATH_OBJECT_H_
22 #define _MATH_OBJECT_H_
25 #include "function_object.h"
29 class MathObjectImp :
public ObjectImp {
31 MathObjectImp(ExecState *exec,
32 ObjectPrototypeImp *objProto);
33 Value get(ExecState *exec,
const Identifier &p)
const;
34 Value getValueProperty(ExecState *exec,
int token)
const;
35 virtual const ClassInfo *classInfo()
const {
return &info; }
36 static const ClassInfo info;
37 enum { Euler, Ln2, Ln10, Log2E, Log10E, Pi, Sqrt1_2, Sqrt2,
38 Abs, ACos, ASin, ATan, ATan2, Ceil, Cos, Pow,
39 Exp, Floor, Log, Max, Min, Random, Round, Sin, Sqrt, Tan };
42 class MathFuncImp :
public InternalFunctionImp {
44 MathFuncImp(ExecState *exec,
int i,
int l);
45 virtual bool implementsCall()
const;
46 virtual Value call(ExecState *exec, Object &thisObj,
const List &args);