Scripts: sDotToLineDist

 

sDotToLineDist:

A script calculating the distance between a point and a line.

Function parameters:

  • double LX1 - the X coordinate of the first point of the line;
  • double LY1 - the Y coordinate of the first point of the line;
  • double LX2 - the X coordinate of the second point of the line;
  • double LY2 - the Y coordinate of the second point of the line;
  • double DX - the X coordinate of the point;
  • double DY - the Y coordinate of the point.

Author: Dmitry Fedoseev

Reason: