Mercurial Hosting > luan
view src/luan/modules/Math.luan @ 1447:851b9a48cc44
Luan.parse
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 18 Feb 2020 14:54:35 -0700 |
parents | 8d95711f6615 |
children |
line wrap: on
line source
require "java" local MathLuan = require "java:luan.modules.MathLuan" local JavaMath = require "java:java.lang.Math" local Integer = require "java:java.lang.Integer" local Double = require "java:java.lang.Double" local Math = {} Math.abs = MathLuan.abs Math.acos = MathLuan.acos Math.asin = MathLuan.asin Math.atan = MathLuan.atan Math.atan2 = MathLuan.atan2 Math.ceil = MathLuan.ceil Math.cos = MathLuan.cos Math.cosh = MathLuan.cosh Math.deg = MathLuan.deg Math.exp = MathLuan.exp Math.floor = MathLuan.floor Math.fmod = MathLuan.fmod Math.huge = Double.POSITIVE_INFINITY Math.log = MathLuan.log Math.max = MathLuan.max Math.max_integer = Integer.MAX_VALUE Math.min = MathLuan.min Math.min_integer = Integer.MIN_VALUE Math.modf = MathLuan.modf Math.pi = JavaMath.PI Math.rad = MathLuan.rad Math.random = MathLuan.random Math.sin = MathLuan.sin Math.sqrt = MathLuan.sqrt Math.tan = MathLuan.tan return Math