src/util/src/geometry.js
function findSquaredDistanceBetweenSegments(segmentA, segmentB) {
  findClosestPointsFromSegmentToSegment(_segmentDistance_tmpVecA, _segmentDistance_tmpVecB,
      segmentA, segmentB);
  return vec3.squaredDistance(_segmentDistance_tmpVecA, _segmentDistance_tmpVecB);
}
function findSquaredDistanceBetweenSegments(segmentA, segmentB) {
  findClosestPointsFromSegmentToSegment(_segmentDistance_tmpVecA, _segmentDistance_tmpVecB,
      segmentA, segmentB);
  return vec3.squaredDistance(_segmentDistance_tmpVecA, _segmentDistance_tmpVecB);
}
function findSquaredDistanceBetweenSegments ( segmentA , segmentB ) { findClosestPointsFromSegmentToSegment ( _segmentDistance_tmpVecA , _segmentDistance_tmpVecB , segmentA , segmentB ) ; return vec3 . squaredDistance ( _segmentDistance_tmpVecA , _segmentDistance_tmpVecB ) ; }
Finds the minimum squared distance between two line segments.

@param {LineSegment} segmentA
@param {LineSegment} segmentB
@returns {number}
Finds the minimum squared distance between two line segments .