distancePointLine

Determine the signed distance of the given point <code>(pointX, pointY)</code> to the line defined by the two points <code>(x0, y0)</code> and <code>(x1, y1)</code>. <p> Reference: <a href="http://mathworld.wolfram.com/Point-LineDistance2-Dimensional.html">http://mathworld.wolfram.com</a>

@param pointX the x coordinate of the point @param pointY the y coordinate of the point @param x0 the x coordinate of the first point on the line @param y0 the y coordinate of the first point on the line @param x1 the x coordinate of the second point on the line @param y1 the y coordinate of the second point on the line @return the distance between the point and the line

  1. double distancePointLine(double pointX, double pointY, double a, double b, double c)
  2. double distancePointLine(double pointX, double pointY, double x0, double y0, double x1, double y1)
    static
    double
    distancePointLine
    (
    double pointX
    ,
    double pointY
    ,
    double x0
    ,
    double y0
    ,
    double x1
    ,
    double y1
    )
  3. double distancePointLine(double pX, double pY, double pZ, double x0, double y0, double z0, double x1, double y1, double z1)

Meta