mirror of
https://github.com/photonstorm/phaser
synced 2024-12-23 19:43:28 +00:00
10 lines
165 B
JavaScript
10 lines
165 B
JavaScript
|
|
||
|
export default function (a, b, precision = 1e-6) {
|
||
|
|
||
|
return (
|
||
|
Math.abs(a[0] - b[0]) <= precision &&
|
||
|
Math.abs(a[1] - b[1]) <= precision
|
||
|
);
|
||
|
|
||
|
}
|