Struct mgf::BVH [] [src]

pub struct BVH<B: Bound, V> { /* fields omitted */ }

A Bounding Volume Hierarchy.

Methods

impl<B: Bound, V> BVH<B, V>
[src]

[src]

Creates an empty BVH.

[src]

Creates a BVH with a preallocated array of cap.

[src]

Determines if the BVH is empty.

[src]

Returns the number of bounds inserted into the BVH.

[src]

Inserts an item into the BVH, rebalancing if necessary. All IDs returned prior to insert remain valid afterward.

[src]

Removes a leaf node from the BVH.

[src]

Returns the index of the root node.

[src]

Find each entry in the BVH that has a bound that overlaps the bound of the passed object.

[src]

Pass each found entry as a mutable reference to the callback.

Trait Implementations

impl<B, V> Clone for BVH<B, V> where
    B: Bound,
    V: Clone
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<B, V> Index<usize> for BVH<B, V> where
    B: Bound
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl<B, V> BoundedBy<B> for BVH<B, V> where
    B: Bound
[src]

[src]