Skip to content

Latest commit

 

History

History
26 lines (14 loc) · 308 Bytes

File metadata and controls

26 lines (14 loc) · 308 Bytes

GetPointsDistance

获取两点间直线距离

distance = GetPointsDistance(point1, point2)

参数:

  • point1 [table]:点1坐标
  • point2 [table]:点2坐标

返回值:

  • distance [number]:两点间直线距离

示例