samePoint 범위 확장

This commit is contained in:
hyojun.choi 2024-11-15 09:44:03 +09:00
parent eb5bb77f1f
commit 55f4a24419

View File

@ -1201,7 +1201,7 @@ export function removeDuplicatePolygons(polygons) {
}
export const isSamePoint = (a, b) => {
return Math.abs(Math.round(a.x) - Math.round(b.x)) <= 1 && Math.abs(Math.round(a.y) - Math.round(b.y)) <= 1
return Math.abs(Math.round(a.x) - Math.round(b.x)) <= 2 && Math.abs(Math.round(a.y) - Math.round(b.y)) <= 2
}
/**