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

difference(a, b) → {number} The absolute difference between two values. Parameters

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

linearInterpolation(v, k) → {number} A Linear Interpolation Method, mostly used by Phaser.Tween

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

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

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

isOdd(n) → {boolean} Returns true if the number given is odd. Parameters

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

average() → {number} Averages all values passed to the function and returns the result.

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

distancePow(x1, y1, x2, y2, pow) → {number} Returns the distance between

2025-01-10 15:47:30