Package se.krka.kahlua.j2se
Class MathLib
java.lang.Object
se.krka.kahlua.j2se.MathLib
- All Implemented Interfaces:
JavaFunction
public class MathLib extends java.lang.Object implements JavaFunction
-
Constructor Summary
Constructors Constructor Description MathLib(int index) -
Method Summary
Modifier and Type Method Description intcall(LuaCallFrame callFrame, int nArguments)static booleanisNegative(double vDouble)static voidregister(Platform platform, KahluaTable env)static doubleround(double x)java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
MathLib
public MathLib(int index)
-
-
Method Details
-
register
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
call
- Specified by:
callin interfaceJavaFunction
-
isNegative
public static boolean isNegative(double vDouble) -
round
public static double round(double x)
-