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
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