Struct maglio::KdTree[][src]

pub struct KdTree<BoundingBox: HittableBoundingBoxTrait, Content: KdTreeContent<BoundingBox>> { /* fields omitted */ }

Implementations

impl<BoundingBox: HittableBoundingBoxTrait, Content: KdTreeContent<BoundingBox>> KdTree<BoundingBox, Content>[src]

pub fn new() -> Self[src]

pub fn add(&mut self, content: &Arc<Content>)[src]

pub fn get_closest_hit<F>(
    &self,
    fun: &F,
    cray: &ConstrainedRay
) -> Option<Arc<Content>> where
    F: Fn(&Content, &ConstrainedRay) -> Option<f64>, 
[src]

Auto Trait Implementations

impl<BoundingBox, Content> RefUnwindSafe for KdTree<BoundingBox, Content> where
    BoundingBox: RefUnwindSafe,
    Content: RefUnwindSafe

impl<BoundingBox, Content> Send for KdTree<BoundingBox, Content> where
    BoundingBox: Send,
    Content: Send + Sync

impl<BoundingBox, Content> Sync for KdTree<BoundingBox, Content> where
    BoundingBox: Sync,
    Content: Send + Sync

impl<BoundingBox, Content> Unpin for KdTree<BoundingBox, Content> where
    BoundingBox: Unpin

impl<BoundingBox, Content> UnwindSafe for KdTree<BoundingBox, Content> where
    BoundingBox: UnwindSafe,
    Content: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.