combine method

CombinedSegmentLists combine(
  1. SegmentList segments1,
  2. SegmentList segments2
)

Implementation

CombinedSegmentLists combine(SegmentList segments1, SegmentList segments2) {
  var i = new Intersecter(
    false,
  );

  return new CombinedSegmentLists(
      combined: i.calculateXD(
          segments1, segments1.inverted, segments2, segments2.inverted),
      inverted1: segments1.inverted,
      inverted2: segments2.inverted);
}