public TriangleQuadtree GetQuadtree() { if (quad == null) { quad = new TriangleQuadtree(this); } return(quad); }
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; }