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

maxProperty() → {number} Variation of Math.max that can be passed a property and either an array

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

smoothstep(x, min, max) → {float} Smoothstep function as detailed at http://en.wikipedia.org/wiki/Smoothstep

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

percent(a, b, base) → {number} Work out what percentage value a

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

sign() → {number} Returns a sign to be used with multiplication operator. Returns

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

sign(x) → {integer} A value representing the sign of the value: -1 for negative, +1 for positive

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

maxLevels : number The maximum number of levels to break down to. Default

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

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

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

uuid() → {string} Returns a valid RFC4122 version4 ID hex string from https://gist.github.com/1308368

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