phaser/v3/typings/math/Within.d.ts
2017-01-16 22:43:07 +01:00

11 lines
474 B
TypeScript

/**
* Checks if two values are within the given tolerance of each other.
*
* @method Phaser.Math#within
* @param {number} a - The first number to check
* @param {number} b - The second number to check
* @param {number} tolerance - The tolerance. Anything equal to or less than this is considered within the range.
* @return {boolean} True if a is <= tolerance of b.
* @see {@link Phaser.Math.fuzzyEqual}
*/
export default function (a: any, b: any, tolerance: any): boolean;