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
    int call​(LuaCallFrame callFrame, int nArguments)  
    static boolean isNegative​(double vDouble)  
    static void register​(Platform platform, KahluaTable env)  
    static double round​(double x)  
    java.lang.String toString()  

    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

      public static void register​(Platform platform, KahluaTable env)
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • call

      public int call​(LuaCallFrame callFrame, int nArguments)
      Specified by:
      call in interface JavaFunction
    • isNegative

      public static boolean isNegative​(double vDouble)
    • round

      public static double round​(double x)