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

roundTo(value, place, base) → {number}

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

angleBetweenY(x1, y1, x2, y2) → {number} Find the angle of a segment from (x1, y1) -> (x2, y2)

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

within(a, b, tolerance) → {boolean} Checks if two values are within the given tolerance of each

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

snapToCeil(input, gap, start) → {number} Snap a value to nearest grid

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

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

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

distance(x1, y1, x2, y2) → {number} Returns the euclidian distance between the two given set of

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

fuzzyLessThan(a, b, epsilon) → {boolean} a is fuzzyLessThan

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

angleBetween(x1, y1, x2, y2) → {number} Find the angle of a segment from (x1, y1) -> (x2, y2)

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

max() → {number} Variation of Math.max that can be passed either an array of numbers or the numbers

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

clamp(v, min, max) → {number} Force a value within the boundaries by clamping it to the range min

2025-01-10 15:47:30