mirror of
https://github.com/photonstorm/phaser
synced 2024-12-18 09:03:29 +00:00
12 lines
474 B
TypeScript
12 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;
|