phaser/v3/typings/math/Within.d.ts

12 lines
474 B
TypeScript
Raw Normal View History

2017-01-16 21:43:07 +00:00
/**
* 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;