Mercurial Hosting > luan
comparison src/luan/modules/Math.luan @ 1088:bae2d0c2576c
change module naming convention
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 26 Dec 2016 22:29:36 -0700 |
parents | 1a68fc55a80c |
children | 8d95711f6615 |
comparison
equal
deleted
inserted
replaced
1087:4aab4dd3ac9c | 1088:bae2d0c2576c |
---|---|
3 local JavaMath = require "java:java.lang.Math" | 3 local JavaMath = require "java:java.lang.Math" |
4 local Integer = require "java:java.lang.Integer" | 4 local Integer = require "java:java.lang.Integer" |
5 local Double = require "java:java.lang.Double" | 5 local Double = require "java:java.lang.Double" |
6 | 6 |
7 | 7 |
8 local M = {} | 8 local Math = {} |
9 | 9 |
10 M.abs = MathLuan.abs | 10 Math.abs = MathLuan.abs |
11 M.acos = MathLuan.acos | 11 Math.acos = MathLuan.acos |
12 M.asin = MathLuan.asin | 12 Math.asin = MathLuan.asin |
13 M.atan = MathLuan.atan | 13 Math.atan = MathLuan.atan |
14 M.atan2 = MathLuan.atan2 | 14 Math.atan2 = MathLuan.atan2 |
15 M.ceil = MathLuan.ceil | 15 Math.ceil = MathLuan.ceil |
16 M.cos = MathLuan.cos | 16 Math.cos = MathLuan.cos |
17 M.cosh = MathLuan.cosh | 17 Math.cosh = MathLuan.cosh |
18 M.deg = MathLuan.deg | 18 Math.deg = MathLuan.deg |
19 M.exp = MathLuan.exp | 19 Math.exp = MathLuan.exp |
20 M.floor = MathLuan.floor | 20 Math.floor = MathLuan.floor |
21 M.fmod = MathLuan.fmod | 21 Math.fmod = MathLuan.fmod |
22 M.huge = Double.POSITIVE_INFINITY | 22 Math.huge = Double.POSITIVE_INFINITY |
23 M.log = MathLuan.log | 23 Math.log = MathLuan.log |
24 M.max = MathLuan.max | 24 Math.max = MathLuan.max |
25 M.max_integer = Integer.MAX_VALUE | 25 Math.max_integer = Integer.MAX_VALUE |
26 M.min = MathLuan.min | 26 Math.min = MathLuan.min |
27 M.min_integer = Integer.MIN_VALUE | 27 Math.min_integer = Integer.MIN_VALUE |
28 M.modf = MathLuan.modf | 28 Math.modf = MathLuan.modf |
29 M.pi = JavaMath.PI | 29 Math.pi = JavaMath.PI |
30 M.rad = MathLuan.rad | 30 Math.rad = MathLuan.rad |
31 M.random = MathLuan.random | 31 Math.random = MathLuan.random |
32 M.sin = MathLuan.sin | 32 Math.sin = MathLuan.sin |
33 M.sqrt = MathLuan.sqrt | 33 Math.sqrt = MathLuan.sqrt |
34 M.tan = MathLuan.tan | 34 Math.tan = MathLuan.tan |
35 | 35 |
36 return M | 36 return Math |