distancePointLine

Compute the distance of the given point <code>(pX, pY, pZ)</code> to the line defined by the two points <code>(x0, y0, z0)</code> and <code>(x1, y1, z1)</code>. <p> Reference: <a href="http://mathworld.wolfram.com/Point-LineDistance3-Dimensional.html">http://mathworld.wolfram.com</a>

@param pX the x coordinate of the point @param pY the y coordinate of the point @param pZ the z 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 z0 the z 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 @param z1 the z 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)
  3. double distancePointLine(double pX, double pY, double pZ, double x0, double y0, double z0, double x1, double y1, double z1)
    static
    double
    distancePointLine
    (
    double pX
    ,
    double pY
    ,
    double pZ
    ,
    double x0
    ,
    double y0
    ,
    double z0
    ,
    double x1
    ,
    double y1
    ,
    double z1
    )

Meta