A - The precise type of octtree memberspublic interface OctTreeReadableIType<A> extends OctTreeReadableType
int coordinates.| Modifier and Type | Method and Description |
|---|---|
com.io7m.jregions.core.unparameterized.volumes.VolumeI |
bounds() |
void |
containedBy(com.io7m.jregions.core.unparameterized.volumes.VolumeI volume,
Set<A> items)
Returns all objects in the tree that are completely contained within
volume, saving the results to items. |
boolean |
contains(A item)
Determine whether or not the object has already been inserted into the
tree.
|
<C> void |
iterateOctants(C context,
OctTreeOctantIterationIType<A,C> f)
Iterate over all octants within the tree.
|
<B> OctTreeReadableIType<B> |
map(BiFunction<A,com.io7m.jregions.core.unparameterized.volumes.VolumeI,B> f)
Apply
f to each element of the tree. |
void |
overlappedBy(com.io7m.jregions.core.unparameterized.volumes.VolumeI volume,
Set<A> items)
Returns all objects in the tree that are overlapped
volume, saving the results to items. |
void |
raycast(Ray3D ray,
SortedSet<OctTreeRaycastResultI<A>> items)
Returns all objects that are intersected by the given ray.
|
com.io7m.jregions.core.unparameterized.volumes.VolumeI |
volumeFor(A item) |
isEmpty, sizecom.io7m.jregions.core.unparameterized.volumes.VolumeI bounds()
boolean contains(A item)
item - The objecttrue iff the object is in the tree<B> OctTreeReadableIType<B> map(BiFunction<A,com.io7m.jregions.core.unparameterized.volumes.VolumeI,B> f)
f to each element of the tree.B - The type of result elementsf - A mapping function<C> void iterateOctants(C context,
OctTreeOctantIterationIType<A,C> f)
C - The type of context valuescontext - A contextual value passed to ff - An iteration functioncom.io7m.jregions.core.unparameterized.volumes.VolumeI volumeFor(A item) throws NoSuchElementException
item - The itemitemNoSuchElementException - Iff the item is not present in the treevoid containedBy(com.io7m.jregions.core.unparameterized.volumes.VolumeI volume,
Set<A> items)
volume, saving the results to items.volume - The volume to examineitems - The returned itemsvoid overlappedBy(com.io7m.jregions.core.unparameterized.volumes.VolumeI volume,
Set<A> items)
volume, saving the results to items.volume - The volume to examineitems - The returned itemsvoid raycast(Ray3D ray, SortedSet<OctTreeRaycastResultI<A>> items)
ray - The rayitems - The intersected itemsCopyright © 2017 <code@io7m.com> http://io7m.com