dev #561

Merged
ysCha merged 7 commits from dev into prd-deploy 2026-01-08 15:19:12 +09:00
Showing only changes of commit ddd3eaf82a - Show all commits

View File

@ -80,7 +80,7 @@ export const getCenterPoint = (point1, point2) => {
* @returns
*/
export const getDistance = (x1, y1, x2, y2) => {
return Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2)).toFixed(0)
return Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2)).toFixed(1)
}
// polygon의 각 변에 해당 점과 점 사이의 거리를 나타내는 IText를 추가하는 함수