A - The precise type of octtree memberspublic interface OctTreeDType<A> extends OctTreeReadableDType<A>
double precision 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.VolumeD bounds)
Insert the object
item into the octtree. |
<B> OctTreeDType<B> |
map(BiFunction<A,com.io7m.jregions.core.unparameterized.volumes.VolumeD,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.VolumeD 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).
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> OctTreeDType<B> map(BiFunction<A,com.io7m.jregions.core.unparameterized.volumes.VolumeD,B> f)
f to each element of the tree.map in interface OctTreeReadableDType<A>B - The type of result elementsf - A mapping functionCopyright © 2017 <code@io7m.com> http://io7m.com