findClosestPointOnLineSegment

Find the point on the given line segment which is closest to the specified point <code>(pX, pY, pZ)</code>, and store the result in <code>result</code>.

@param aX the x coordinate of the first end point of the line segment @param aY the y coordinate of the first end point of the line segment @param aZ the z coordinate of the first end point of the line segment @param bX the x coordinate of the second end point of the line segment @param bY the y coordinate of the second end point of the line segment @param bZ the z coordinate of the second end point of the line segment @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 result will hold the result @return result

static
findClosestPointOnLineSegment
(
double aX
,
double aY
,
double aZ
,
double bX
,
double bY
,
double bZ
,
double pX
,
double pY
,
double pZ
,)

Meta