A - The precise type of octtree memberspublic interface OctTreeLType<A> extends OctTreeReadableLType<A>
long integer coordinates.| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Remove all objects from the tree.
|
boolean |
insert(A item,
com.io7m.jregions.core.unparameterized.volumes.VolumeL bounds)
Insert the object
item into the octtree. |
<B> OctTreeLType<B> |
map(BiFunction<A,com.io7m.jregions.core.unparameterized.volumes.VolumeL,B> f)
Apply
f to each element of the tree. |
boolean |
remove(A item)
Remove the object
item from the octtree. |
void |
trim()
Trim all empty quadrants from the tree.
|
bounds, containedBy, contains, iterateOctants, overlappedBy, raycast, volumeForisEmpty, sizeboolean insert(A item, com.io7m.jregions.core.unparameterized.volumes.VolumeL bounds)
Insert the object item into the octtree.
The function returns false if the object could not be
inserted for any reason (perhaps due to being too large).
If the object is already in the tree, it is replaced. This can be used to update the bounds of an object within the tree.
item - The object to insertbounds - The object's boundstrue if the object was insertedboolean remove(A item)
Remove the object item from the octtree.
The function returns false if the object could not be
removed for any reason (perhaps due to not being in the tree in the first
place).
item - The object to removetrue if the object was removedvoid clear()
void trim()
<B> OctTreeLType<B> map(BiFunction<A,com.io7m.jregions.core.unparameterized.volumes.VolumeL,B> f)
f to each element of the tree.map in interface OctTreeReadableLType<A>B - The type of result elementsf - A mapping functionCopyright © 2017 <code@io7m.com> http://io7m.com