Class SweepLineEvent

Hierarchy: Object , SweepLineEvent
All Implemented Interfaces: Comparable
public class SweepLineEvent
implements Comparable

Other

  • version: 1.7
public SweepLineEvent(double x, SweepLineEvent insertEvent, SweepLineInterval sweepInt)
public boolean isInsert()
public boolean isDelete()
public SweepLineEvent getInsertEvent()
public int getDeleteEventIndex()
public void setDeleteEventIndex(int deleteEventIndex)
public int compareTo(Object o)
ProjectionEvents are ordered first by their x-value, and then by their eventType. It is important that Insert events are sorted before Delete events, so that items whose Insert and Delete events occur at the same x-value will be correctly handled.