Skip to content

Latest commit

 

History

History
28 lines (16 loc) · 404 Bytes

_GetLinesDistance_.md

File metadata and controls

28 lines (16 loc) · 404 Bytes

GetLinesDistance

获取两直线间距离

distance = GetLinesDistance(start1, end1, start2, end2)

参数:

  • start1 [table]:直线1起点坐标
  • end1 [table]:直线1终点坐标
  • start2 [table]:直线2起点坐标
  • end2 [table]:直线2终点坐标

返回值:

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

示例