예제 #1
0
 public TriangleQuadtree GetQuadtree()
 {
     if (quad == null)
     {
         quad = new TriangleQuadtree(this);
     }
     return(quad);
 }
예제 #2
0
 public Node(TriangleQuadtree tree,
             Vector min,
             Vector max)
 {
     this.tree  = tree;
     this.min   = min;
     this.max   = max;
     this.mid.x = (min.x + max.x) / 2;
     this.mid.y = (min.y + max.y) / 2;
     this.mid.z = 0;
 }