feature/ysCha #23
@ -305,6 +305,9 @@ export function removeDuplicatePolygons(polygons) {
|
||||
}
|
||||
|
||||
export const isSamePoint = (a, b) => {
|
||||
if (!a || !b) {
|
||||
return false
|
||||
}
|
||||
return Math.abs(Math.round(a.x) - Math.round(b.x)) <= 2 && Math.abs(Math.round(a.y) - Math.round(b.y)) <= 2
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user