Beispiel #1
0
        public static IntervalTree <N, T> FromEnumerable(IEnumerable <Interval <N, T> > values)
        {
            var result = new IntervalTree <N, T> ();

            foreach (var item in values)
            {
                result.Add(item.Low, item.High, item.Data);
            }
            return(result);
        }
Beispiel #2
0
 public BoundingRectTree()
 {
     _tree = new IntervalTree <float, IntervalTree <float, Seq <T> > > ();
 }