Mercurial Hosting > luan
view core/src/luan/modules/Math.luan @ 300:9fb523472035
add java() to control java access
git-svn-id: https://luan-java.googlecode.com/svn/trunk@301 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Tue, 16 Dec 2014 13:13:33 +0000 |
parents | 899253043270 |
children | fed1893821bf |
line wrap: on
line source
java() import "java:luan.modules.MathLuan" local JavaMath = require "java:java.lang.Math" abs = MathLuan.abs acos = MathLuan.acos asin = MathLuan.asin atan = MathLuan.atan atan2 = MathLuan.atan2 ceil = MathLuan.ceil cos = MathLuan.cos cosh = MathLuan.cosh deg = MathLuan.deg exp = MathLuan.exp floor = MathLuan.floor log = MathLuan.log min = MathLuan.min max = MathLuan.max modf = MathLuan.modf pi = JavaMath.PI pow = MathLuan.pow rad = MathLuan.rad random = MathLuan.random sin = MathLuan.sin sinh = MathLuan.sinh sqrt = MathLuan.sqrt tan = MathLuan.tan tanh = MathLuan.tanh