export 함수 추가
This commit is contained in:
parent
bcdb6a8d82
commit
e38e9cee46
@ -649,7 +649,7 @@ export function calculateDistance(point, line) {
|
||||
* @param {Object} point2 - 두 번째 점 { x: number, y: 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))
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user