function isSegmentToTheRight( segment, minX, minY, maxY ) {

	const sx = segment.start.x;
	const sy = segment.start.y;
	const ex = segment.end.x;
	const ey = segment.end.y;

	if ( sx < minX && ex < minX ) return false;
	if ( sy > maxY && ey > maxY ) return false;
	if ( sy < minY && ey < minY ) return false;

	return true;

}
Determine if a line segment is to the right of a box.

@param {THREE.Line3} segment
@param {number} minX The leftmost X coordinate of the box
@param {number} minY The bottommost Y coordinate of the box
@param {number} maxY The topmost Y coordinate of the box
@returns {boolean}