pub struct KdTree<BoundingBox: BoundingBoxTrait, Content: KdTreeContent<BoundingBox>> { /* private fields */ }Implementations§
Source§impl<BoundingBox: BoundingBoxTrait, Content: KdTreeContent<BoundingBox>> KdTree<BoundingBox, Content>
impl<BoundingBox: BoundingBoxTrait, Content: KdTreeContent<BoundingBox>> KdTree<BoundingBox, Content>
pub fn new() -> Self
pub fn add(&mut self, content: Content)
pub fn get_intersection(&self, filter: &BoundingBox) -> HashSet<Content>
Source§impl<BoundingBox: HittableBoundingBoxTrait, Content: KdTreeContent<BoundingBox>> KdTree<BoundingBox, Content>
impl<BoundingBox: HittableBoundingBoxTrait, Content: KdTreeContent<BoundingBox>> KdTree<BoundingBox, Content>
pub fn get_closest_hit<F>( &self, fun: &F, cray: &ConstrainedRay3d, ) -> Option<Content>
Auto Trait Implementations§
impl<BoundingBox, Content> Freeze for KdTree<BoundingBox, Content>where
BoundingBox: Freeze,
impl<BoundingBox, Content> RefUnwindSafe for KdTree<BoundingBox, Content>where
BoundingBox: RefUnwindSafe,
Content: RefUnwindSafe,
impl<BoundingBox, Content> Send for KdTree<BoundingBox, Content>
impl<BoundingBox, Content> Sync for KdTree<BoundingBox, Content>
impl<BoundingBox, Content> Unpin for KdTree<BoundingBox, Content>
impl<BoundingBox, Content> UnwindSafe for KdTree<BoundingBox, Content>where
BoundingBox: UnwindSafe,
Content: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more