export 함수 추가

This commit is contained in:
hyojun.choi 2025-02-25 13:46:49 +09:00
parent bcdb6a8d82
commit e38e9cee46

View File

@ -649,7 +649,7 @@ export function calculateDistance(point, line) {
* @param {Object} point2 - 번째 { x: number, y: number } * @param {Object} point2 - 번째 { x: number, y: number }
* @returns {number} 사이의 거리 * @returns {number} 사이의 거리
*/ */
function calculateDistancePoint(point1, point2) { export function calculateDistancePoint(point1, point2) {
return Math.sqrt(Math.pow(point2.x - point1.x, 2) + Math.pow(point2.y - point1.y, 2)) return Math.sqrt(Math.pow(point2.x - point1.x, 2) + Math.pow(point2.y - point1.y, 2))
} }