distancePointPlane

Determine the signed distance of the given point <code>(pointX, pointY, pointZ)</code> to the plane of the triangle specified by its three points <code>(v0X, v0Y, v0Z)</code>, <code>(v1X, v1Y, v1Z)</code> and <code>(v2X, v2Y, v2Z)</code>. <p> If the point lies on the front-facing side of the triangle's plane, that is, if the triangle has counter-clockwise winding order as seen from the point, then this method returns a positive number.

@param pointX the x coordinate of the point @param pointY the y coordinate of the point @param pointZ the z coordinate of the point @param v0X the x coordinate of the first vertex of the triangle @param v0Y the y coordinate of the first vertex of the triangle @param v0Z the z coordinate of the first vertex of the triangle @param v1X the x coordinate of the second vertex of the triangle @param v1Y the y coordinate of the second vertex of the triangle @param v1Z the z coordinate of the second vertex of the triangle @param v2X the x coordinate of the third vertex of the triangle @param v2Y the y coordinate of the third vertex of the triangle @param v2Z the z coordinate of the third vertex of the triangle @return the signed distance between the point and the plane of the triangle

  1. double distancePointPlane(double pointX, double pointY, double pointZ, double a, double b, double c, double d)
  2. double distancePointPlane(double pointX, double pointY, double pointZ, double v0X, double v0Y, double v0Z, double v1X, double v1Y, double v1Z, double v2X, double v2Y, double v2Z)
    static
    double
    distancePointPlane
    (
    double pointX
    ,
    double pointY
    ,
    double pointZ
    ,
    double v0X
    ,
    double v0Y
    ,
    double v0Z
    ,
    double v1X
    ,
    double v1Y
    ,
    double v1Z
    ,
    double v2X
    ,
    double v2Y
    ,
    double v2Z
    )

Meta