Math#ceilTo()
  • References/Game Development/Phaser/Math/Math

ceilTo(value, place, base) → {number} Ceils

2025-01-10 15:47:30
Math#getShortestAngle()
  • References/Game Development/Phaser/Math/Math

getShortestAngle(angle1, angle2) → {number} Gets the shortest angle between angle1

2025-01-10 15:47:30
Math#Math
  • References/Game Development/Phaser/Math/Math

new Math() A collection of useful mathematical functions. These are normally accessed through game.math.

2025-01-10 15:47:30
QuadTree#bounds
  • References/Game Development/Phaser/Math/QuadTree

bounds : Object Object that contains the quadtree bounds. Source code:

2025-01-10 15:47:30
RandomDataGenerator#integerInRange()
  • References/Game Development/Phaser/Math/RandomDataGenerator

integerInRange(min, max) → {number} Returns a random integer between and including min and max.

2025-01-10 15:47:30
RandomDataGenerator#weightedPick()
  • References/Game Development/Phaser/Math/RandomDataGenerator

weightedPick(ary) → {any} Returns a random member of array, favoring the earlier entries

2025-01-10 15:47:30
Math#mapLinear()
  • References/Game Development/Phaser/Math/Math

mapLinear(x, a1, a2, b1, b2) → {number} Linear mapping from range to range Parameters

2025-01-10 15:47:30
Math#linear()
  • References/Game Development/Phaser/Math/Math

linear(p0, p1, t) → {number} Calculates a linear (interpolation) value over t. Parameters

2025-01-10 15:47:30
Math#fuzzyEqual()
  • References/Game Development/Phaser/Math/Math

fuzzyEqual(a, b, epsilon) → {boolean} Two number are fuzzyEqual if

2025-01-10 15:47:30
Math#smootherstep()
  • References/Game Development/Phaser/Math/Math

smootherstep(x, min, max) → {float} Smootherstep function as detailed at http://en.wikipedia.or

2025-01-10 15:47:30