Function VectorMath.SqrDistanceSegmentSegment

SqrDistanceSegmentSegment (Vector3 s1, Vector3 e1, Vector3 s2, Vector3 e2)

3D minimum distance between 2 segments.

Public Static
float SqrDistanceSegmentSegment (

Vector3

s1

Vector3

e1

Vector3

s2

Vector3

e2

)

3D minimum distance between 2 segments.

Input: two 3D line segments S1 and S2

Return

the shortest squared distance between S1 and S2