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