new Math() A collection of useful mathematical functions. These are normally accessed through game.math.
getShortestAngle(angle1, angle2) → {number} Gets the shortest angle between angle1
difference(a, b) → {number} The absolute difference between two values. Parameters
ceilTo(value, place, base) → {number} Ceils
fuzzyFloor(val, epsilon) → {number} Applies a fuzzy floor to the given
isEven(n) → {boolean} Returns true if the number given is even. Parameters
radToDeg(radians) → {number} Convert radians to degrees. Parameters
linearInterpolation(v, k) → {number} A Linear Interpolation Method, mostly used by Phaser.Tween
average() → {number} Averages all values passed to the function and returns the result.
catmullRomInterpolation(v, k) → {number} A Catmull Rom Interpolation Method, mostly used by Phaser
Page 1 of 6