comparison core/src/luan/modules/Math.luan @ 297:899253043270

remove PackageLuan.load_lib() git-svn-id: https://luan-java.googlecode.com/svn/trunk@298 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Tue, 16 Dec 2014 03:26:43 +0000
parents
children 9fb523472035
comparison
equal deleted inserted replaced
296:7ea6dfdf81ba 297:899253043270
1 import "java:luan.modules.MathLuan"
2 local JavaMath = require "java:java.lang.Math"
3
4 abs = MathLuan.abs
5 acos = MathLuan.acos
6 asin = MathLuan.asin
7 atan = MathLuan.atan
8 atan2 = MathLuan.atan2
9 ceil = MathLuan.ceil
10 cos = MathLuan.cos
11 cosh = MathLuan.cosh
12 deg = MathLuan.deg
13 exp = MathLuan.exp
14 floor = MathLuan.floor
15 log = MathLuan.log
16 min = MathLuan.min
17 max = MathLuan.max
18 modf = MathLuan.modf
19 pi = JavaMath.PI
20 pow = MathLuan.pow
21 rad = MathLuan.rad
22 random = MathLuan.random
23 sin = MathLuan.sin
24 sinh = MathLuan.sinh
25 sqrt = MathLuan.sqrt
26 tan = MathLuan.tan
27 tanh = MathLuan.tanh