phaser/wip/vec2/Equal.js

10 lines
165 B
JavaScript
Raw Normal View History

2017-02-04 04:41:17 +00:00
export default function (a, b, precision = 1e-6) {
return (
Math.abs(a[0] - b[0]) <= precision &&
Math.abs(a[1] - b[1]) <= precision
);
}