distancePointLine

Determine the signed distance of the given point <code>(pointX, pointY)</code> to the line specified via its general plane equation <i>a*x + b*y + c = 0</i>. <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 a the x factor in the plane equation @param b the y factor in the plane equation @param c the constant in the plane equation @return the distance between the point and the line

  1. double distancePointLine(double pointX, double pointY, double a, double b, double c)
    public static
    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)
  3. double distancePointLine(double pX, double pY, double pZ, double x0, double y0, double z0, double x1, double y1, double z1)

Meta