Skyline Lua API  Version 1.0
Lua Script Reference for Skyline Game Engine.
LUA_API_Math.h
Go to the documentation of this file.
1 
2 // SKYLINE LUA CLASS FOR API DOCUMENTATION
3 
10 class math
11 {
12 public:
25  abs();
26 
38  acos();
39 
51  asin();
52 
63  atan();
64 
75  atan2();
76 
87  ceil();
88 
99  floor();
100 
111  cos();
112 
123  sin();
124 
136  tan();
137 
148  cosh();
149 
160  sinh();
161 
172  tanh();
173 
185  deg();
186 
198  rad();
199 
212  exp();
213 
225  log();
226 
239  log10();
240 
262  frexp();
263 
277  ldexp();
278 
301  huge();
302 
318  max();
319 
332  min();
333 
346  modf();
347 
358  pi();
359 
376  pow();
377 
378 
401  random();
402 
421  randomseed();
422 
435  sqrt();
436 
441  skyMath.linearInterp(inputValue, scaleRangeMin, scaleRangeMax, minOut, maxOut );
442 
443 
444 };
cos()
The Math cos function returns the cosine number for a given value in radians.
modf()
The Math abs function always returns the non-negative number, of a given value.
ldexp()
The math.ldexp() function takes a normalised number and returns the floating point representation...
sin()
The Math sin function returns the cosine number for a given value in radians.
sinh()
The Math cosh function returns the hyperbolic sine number for a given value.
abs()
The Math abs function always returns the non-negative number, of a given value.
tan()
The Math tan function returns the cosine number for a given value in radians.
tanh()
The Math cosh function returns the hyperbolic tangent[2] number for a given value.
pow()
math.pow() raises the first parameter to the power of the second parameter and returns the result...
asin()
The Math asin function returns the inverse sine of the given value.
deg()
The Math deg function allows you to convert from radians to degrees.
log()
math.log() returns the inverse of math.exp(). math.exp(1) returns e.
huge()
math.huge is a constant. It represents +infinity.
ceil()
The Math ceil function returns the integer no greater than or no less than the given value...
cosh()
The Math cosh function returns the hyperbolic cosine number for a given value.
acos()
The Math acos function returns the inverse cosine of the given value.
exp()
math.exp(myval) returns e (the base of natural logarithms) raised to the power myval.
pi()
This is the constant PI.
randomseed()
The math.randomseed() function sets a seed for the pseudo-random generator: Equal seeds produce equal...
log10()
The Math abs function returns the base 10 logarithm of a given number. The number must be positive...
max()
The Math max function returns the maximum value from a variable length list of arguments.
random()
math.random() generates pseudo-random numbers uniformly distributed. Supplying argument alters its be...
Definition: LUA_API_Math.h:10
sqrt()
The Math sqrt function returns the square root of a given number. Only non-negative arguments are all...
min()
The Math min function returns the minimum value from a variable length list of arguments.
floor()
The Math floor function returns the integer no greater than or no less than the given value...
frexp()
This is a normalisation function [6]. The math.frexp() function is used to split the number value int...
rad()
The Math deg function allows you to convert from degrees to radians.
atan()
Return the inverse tangent. We can do this by supplying y/x ourselves using math.atan() or we can pas...
atan2()
Return the inverse tangent. We can do this by supplying y/x ourselves using math.atan() or we can pas...