Skip to content

Latest commit

 

History

History
27 lines (15 loc) · 354 Bytes

File metadata and controls

27 lines (15 loc) · 354 Bytes

GetPointLineDistance

获取两直线间距离

distance = GetPointLineDistance(point, start, end)

参数:

  • point [table]:点坐标
  • start [table]:直线起点坐标
  • end [table]:直线终点坐标

返回值:

  • distance [number]:点到直线的距离

示例