Documentation
¶
Index ¶
Constants ¶
View Source
const ( LEFT eventType = iota RIGHT )
Variables ¶
View Source
var ErrStopIteration = errors.New("Stop Iteration")
ErrStopIteration is used to stop the iteration.
Functions ¶
This section is empty.
Types ¶
type EventQueue ¶
func NewEventQueue ¶
func NewEventQueue(segments []geom.Line) (eq EventQueue)
Ref: http://geomalgorithms.com/a09-_intersect-3.html#simple_Polygon()
func (*EventQueue) FindIntersects ¶
func (EventQueue) Len ¶
func (eq EventQueue) Len() int
func (EventQueue) Less ¶
func (eq EventQueue) Less(i, j int) bool
func (EventQueue) Swap ¶
func (eq EventQueue) Swap(i, j int)
type Ring ¶
type Ring struct { IncludeBorder bool CMP pkgcmp.Compare // contains filtered or unexported fields }
func NewRingFromPointers ¶
func NewRingFromPoints ¶
func (*Ring) ContainsPoint ¶
type SearchSegmentIdxs ¶
type SearchSegmentIdxs struct {
// contains filtered or unexported fields
}
func NewSearchSegmentIdxs ¶
func NewSearchSegmentIdxs(segs []geom.Line) *SearchSegmentIdxs
func (*SearchSegmentIdxs) SearchIntersectIdxs ¶
func (segs *SearchSegmentIdxs) SearchIntersectIdxs(seg geom.Line, filters ...SegmentFilterFn) (idxs []int)
Click to show internal directories.
Click to hide internal directories.