// Intersects returns true if there is some tree node intersecting the given interval.
Intersects returns true if there is some tree node intersecting the given interval.
// Intersects returns true if there is some tree node intersecting the given interval .
func (ivt *intervalTree) Intersects(iv Interval) bool {
	x := ivt.root
	for x != ivt.nilNode && iv.Compare(&x.iv.Ivl) != 0 {
		if x.left != ivt.nilNode && x.left.max.Compare(iv.Begin) > 0 {
			x = x.left
		} else {
			x = x.right
		}
	}
	return x != ivt.nilNode
}
func ( ivt * intervalTree ) Intersects ( iv Interval ) bool { x := ivt . root for x != ivt . nilNode && iv . Compare ( & x . iv . Ivl ) != 0 { if x . left != ivt . nilNode && x . left . max . Compare ( iv . Begin ) > 0 { x = x . left } else { x = x . right } } return x != ivt . nilNode }
Intersects returns true if there is some tree node intersecting the given interval.
Intersects returns true if there is some tree node intersecting the given interval .