38 #define NUMSIDES 2*NUMDIMS
54 #define MAXCARD (int)((PGSIZE-(2*sizeof(int))) / sizeof(struct Branch))
RectReal boundary[NUMSIDES]
int RTreePickBranch(struct Rect *, struct Node *)
int RTreeGetLeafMax(void)
int RTreeSearch(struct Node *N, struct Rect *R, SearchHitCallback shcb, void *cbarg)
int RTreeAddBranch(struct Branch *, struct Node *, struct Node **)
void RTreeDestroyNode(struct Node *)
RectReal RTreeRectSphericalVolume(struct Rect *R)
void RTreePrintNode(struct Node *, int)
int RTreeInsertRect(struct Rect *R, int Tid, struct Node **Root, int Level)
void RTreeSplitNode(struct Node *, struct Branch *, struct Node **)
RectReal RTreeRectVolume(struct Rect *R)
struct Node * RTreeNewNode(void)
void RTreeInitRect(struct Rect *)
int RTreeGetNodeMax(void)
int RTreeSetLeafMax(int new_max)
int RTreeOverlap(struct Rect *, struct Rect *)
void RTreePrintRect(struct Rect *, int)
struct Rect RTreeNodeCover(struct Node *)
int(* SearchHitCallback)(int id, void *arg)
int RTreeSetNodeMax(int new_max)
struct Rect RTreeNullRect(void)
struct Rect RTreeCombineRect(struct Rect *, struct Rect *)
struct Node * RTreeNewIndex(void)
void RTreeInitNode(struct Node *)
int RTreeDeleteRect(struct Rect *R, int Tid, struct Node **Nn)
RectReal RTreeRectArea(struct Rect *)
void RTreeFreeNode(struct Node *)
struct Branch branch[MAXCARD]
int RTreeDeleteRect1(struct Rect *R, struct Node *Child, struct Node **Nn)
int RTreeInsertRect1(struct Rect *R, struct Node *Child, struct Node **Root, int Level)
void RTreeDisconnectBranch(struct Node *, int)