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); }
public BoundingBoxTree() { _tree = new IntervalTree <float, IntervalTree <float, IntervalTree <float, Seq <T> > > > (); }