All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.randomdwi.polygonclipping.sweepline.SweepLine Maven / Gradle / Ivy

There is a newer version: 1.0.2
Show newest version
package com.github.randomdwi.polygonclipping.sweepline;

import com.github.randomdwi.polygonclipping.segment.SegmentComparator;

import java.util.PriorityQueue;

public class SweepLine {

    /**
     * event queue (sorted events to be processed)
     */
    public PriorityQueue eventQueue;
    public SweepLineStatus statusLine;

    /**
     * Instantiates a new Sweep line.
     *
     * @param segmentComparator the segment comparator
     */
    public SweepLine(SegmentComparator segmentComparator) {
        this.eventQueue = new PriorityQueue<>(new SweepEventComparator(true));
        this.statusLine = new SweepLineStatus(segmentComparator);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy