Exemplo n.º 1
0
 public IEnumerable <KeyValuePair <V, T> > Overlap(Aabb <V> bbox)
 {
     return(OverlappingNodes(_root, bbox, 0)
            .Select(node => new KeyValuePair <V, T> (node.Position, node.Data)));
 }
Exemplo n.º 2
0
 private static float DistanceToBBox(V pos, Aabb <V> bbox, Func <V, V, float> distance)
 {
     return(distance(pos, pos.Clamp(bbox.Min, bbox.Max)));
 }