findClosestPointsLineSegmentTriangle

Find the closest points on a line segment and a triangle. <p> Reference: Book "Real-Time Collision Detection" chapter 5.1.10 "Closest Points of a Line Segment and a Triangle"

@param aX the x coordinate of the line segment's first end point @param aY the y coordinate of the line segment's first end point @param aZ the z coordinate of the line segment's first end point @param bX the x coordinate of the line segment's second end point @param bY the y coordinate of the line segment's second end point @param bZ the z coordinate of the line segment's second end point @param v0X the x coordinate of the triangle's first vertex @param v0Y the y coordinate of the triangle's first vertex @param v0Z the z coordinate of the triangle's first vertex @param v1X the x coordinate of the triangle's second vertex @param v1Y the y coordinate of the triangle's second vertex @param v1Z the z coordinate of the triangle's second vertex @param v2X the x coordinate of the triangle's third vertex @param v2Y the y coordinate of the triangle's third vertex @param v2Z the z coordinate of the triangle's third vertex @param lineSegmentResult will hold the closest point on the line segment @param triangleResult will hold the closest point on the triangle @return the square distance of the closest points

static
double
findClosestPointsLineSegmentTriangle
(
double aX
,
double aY
,
double aZ
,
double bX
,
double bY
,
double bZ
,
double v0X
,
double v0Y
,
double v0Z
,
double v1X
,
double v1Y
,
double v1Z
,
double v2X
,
double v2Y
,
double v2Z
,,)

Meta