distanceSqToLine3
Returns the closest squared distance between this line segment and the given one line. When provided, writes the closest point on this segment into c1 and the closest point on line into c2.
Return
The squared distance between this line segment and the given one.
Parameters
line
The line segment to compute the closest squared distance to.
c1
The closest point on this line segment (default: a fresh local vector).
c2
The closest point on the given line segment (default: a fresh local vector).