SolidKit3D.Math3D.ClosestLinePoints
From Solid Graphics Wiki
(Redirected from Math3D.ClosestLinePoints)

The ClosestLinePoints function calculates positions and coordinates of closest points of two lines.
public static void ClosestLinePoints ( ref Point P0, ref Point P1, ref Point Q0, ref Point Q1, out float s, out float t, out Point PC, out Point QC );
Parameters
P0  first point of the first line 
P1  second point of the first line 
Q0  first point of the second line 
Q1  second point of the second line 
s  position of closest point lying on the first line will be stored in s. The line position can be then translated to point coordinates using the Math3D.LinePositionToPoint function. 
t  position of closest point lying on the second line will be stored in t. 
PC  coordinates of the closest point lying on the first line. 
QC  coordinates of the closest point lying on the second line. 
See Also