Documentation
¶
Overview ¶
Package sweepline Contains struct which implement a sweepline algorithm for scanning geometric data structures.
Index ¶
Constants ¶
View Source
const ( InsertStatus = iota + 1 DeleteStatus )
Sweepline const parameter.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoordinatesOverlapAction ¶
type CoordinatesOverlapAction struct { }
CoordinatesOverlapAction ...
func (*CoordinatesOverlapAction) Overlap ¶
func (c *CoordinatesOverlapAction) Overlap(s0, s1 *Interval) bool
Overlap ...
type Event ¶
type Event struct { InsertEvent *Event // null if this is an INSERT event DeleteEventIndex int SweepInt *Interval // contains filtered or unexported fields }
Event ...
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
Index A sweepline implements a sorted index on a set of intervals. It is used to compute all overlaps between the interval in the index.
func (*Index) ComputeOverlaps ¶
func (s *Index) ComputeOverlaps(action OverlapAction)
ComputeOverlaps compute overlaps.
type OverlapAction ¶
OverlapAction An action taken when a SweepLineIndex detects that two Interval.
Click to show internal directories.
Click to hide internal directories.