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

The LineSegmentsDistanceSquared function returns square of shortest distance between two line segments.
public static float LineSegmentsDistanceSquared ( ref Point P0, ref Point P1, ref Point Q0, ref Point Q1, out Point C );
Parameters
P0  x,y,z coordinates of first point defining the first line segment 
P1  x,y,z coordinates of second point defining the first line segment 
Q0  x,y,z coordinates of first point defining the second line segment 
Q1  x,y,z coordinates of second point defining the second line segment 
C  the function stores x,y,z coordinates of the closest point from the first line segment to C 
Return Value
The square of shortest distance of the two line segments.
See Also