function _boundSegments(line, bounds) {
  const result = [];
  const segments = line.segments;

  for (let i = 0; i < segments.length; i++) {
    const sub = _boundSegment(segments[i], line.points, bounds);
    if (sub.length) {
      result.push(...sub);
    }
  }
  return result;
}
Returns the segments of the line that are inside given bounds
@param {LineElement} line
@param {object} [bounds]
@param {string} bounds.property - the property we are bounding with. `x`, `y` or `angle`.
@param {number} bounds.start - start value of the `property`
@param {number} bounds.end - end value of the `property`
@private