sweeplineIntersections function

List<Position> sweeplineIntersections(
  1. GeoJSONObject geojson, [
  2. bool ignoreSelfIntersections = false
])

Implementation

List<Position> sweeplineIntersections(GeoJSONObject geojson,
    [bool ignoreSelfIntersections = false]) {
  var eventQueue = SortQueue<Event>();
  fillEventQueue(geojson, eventQueue);
  return runCheck(eventQueue, ignoreSelfIntersections);
}