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