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

angleBetweenPoints(point1, point2) → {number} Find the angle of a segment from (point1.x, point1

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

reset(x, y, width, height, maxObjects, maxLevels, level)

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

sinCosGenerator(length, sinAmplitude, cosAmplitude, frequency) → {Object} Generate a sine and cosine

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

getIndex(rect) → {number} Determine which node the object belongs to. Parameters

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

level : number The current level. Source code:

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

reverseAngle(angleRad) → {number} Reverses an angle. Parameters

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

catmullRomInterpolation(v, k) → {number} A Catmull Rom Interpolation Method, mostly used by Phaser

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

timestamp(min, max) → {number} Returns a random timestamp between min and max, or between the beginning

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
Math#getShortestAngle()
  • References/Game Development/Phaser/Math/Math

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

2025-01-10 15:47:30