Filter/mirror bugfix

This commit is contained in:
Bán Dénes 2023-02-09 23:50:18 +01:00
parent 480c362c1e
commit f0d22328cd
4 changed files with 52 additions and 61 deletions

View file

@ -76,4 +76,11 @@ module.exports = class Point {
const dy = other.y - this.y
return -Math.atan2(dx, dy) * (180 / Math.PI)
}
equals(other) {
return this.x === other.x
&& this.y === other.y
&& this.r === other.r
&& JSON.stringify(this.meta) === JSON.stringify(other.meta)
}
}