QuadTree

Undocumented in source.

Postblit

this(this)
this(this)
Undocumented in source.

Members

Aliases

SubTree
alias SubTree = QuadTree!(T, maxObjects, maxDepth - 1, mapper)
Undocumented in source.

Functions

clear
void clear()
Undocumented in source. Be warned that the author may not have intended to support it.
getQuadrant
int getQuadrant(T item)
int getQuadrant(rect r)

Determines in which quadrant a rectangle would fall or -1 if it spans multiple.

insert
void insert(T item)
Undocumented in source. Be warned that the author may not have intended to support it.
isSplit
bool isSplit()
Undocumented in source. Be warned that the author may not have intended to support it.
remove
bool remove(T item)
Undocumented in source. Be warned that the author may not have intended to support it.
retrieve
T[] retrieve(rect r, bool exact)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

map
rect map(T item)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

bounds
rect bounds;
Undocumented in source.
children
T[] children;
Undocumented in source.
nodes
SubTree*[4] nodes;

0 | 1

Meta