예제 #1
0
 public static void Delete(double x, double y, PointRegionQuadTree<object> tree)
 {
     var root = tree.Root;
     PointRegionQuadTreeFilterIndexCheckBB.CheckBB(root.Bb, x, y);
     var replacement = DeleteFromNode(x, y, root, tree);
     tree.Root = replacement;
 }
        internal static void Set(
            double x, double y,
            TL value,
            PointRegionQuadTree <object> tree)
        {
            var root = tree.Root;

            PointRegionQuadTreeFilterIndexCheckBB.CheckBB(root.Bb, x, y);
            tree.Root = SetOnNode(x, y, value, root, tree);
        }
예제 #3
0
 public static TL Get(double x, double y, PointRegionQuadTree <object> tree)
 {
     PointRegionQuadTreeFilterIndexCheckBB.CheckBB(tree.Root.Bb, x, y);
     return(Get(x, y, tree.Root));
 }