src/util/src/geometry.js
function findPoiBetweenSegmentAndPlaneRegion(poi, segment, planeVertex1, planeVertex2, planeVertex3,
                                             planeVertex4) {
  return findPoiBetweenSegmentAndTriangle(poi, segment, planeVertex1, planeVertex2, planeVertex3) ||
      findPoiBetweenSegmentAndTriangle(poi, segment, planeVertex1, planeVertex3, planeVertex4);
}
function findPoiBetweenSegmentAndPlaneRegion(poi, segment, planeVertex1, planeVertex2, planeVertex3,
                                             planeVertex4) {
  return findPoiBetweenSegmentAndTriangle(poi, segment, planeVertex1, planeVertex2, planeVertex3) ||
      findPoiBetweenSegmentAndTriangle(poi, segment, planeVertex1, planeVertex3, planeVertex4);
}
function findPoiBetweenSegmentAndPlaneRegion ( poi , segment , planeVertex1 , planeVertex2 , planeVertex3 , planeVertex4 ) { return findPoiBetweenSegmentAndTriangle ( poi , segment , planeVertex1 , planeVertex2 , planeVertex3 ) || findPoiBetweenSegmentAndTriangle ( poi , segment , planeVertex1 , planeVertex3 , planeVertex4 ) ; }
Finds the point of intersection between a line segment and a coplanar quadrilateral.

This assumes the region is not degenerate (has non-zero side lengths).

@param {vec3} poi Output param. Null if there is no intersection.
@param {LineSegment} segment
@param {vec3} planeVertex1
@param {vec3} planeVertex2
@param {vec3} planeVertex3
@param {vec3} planeVertex4
@returns {boolean} True if there is an intersection.
Finds the point of intersection between a line segment and a coplanar quadrilateral .