Skip to content

@miyue-mma/shared / calculateDistance

函数: calculateDistance()

ts
function calculateDistance(point1, point2): number

计算两点之间的距离

参数

point1

IPoint

point2

IPoint

返回

number

Released under the MIT License.