Struct kdtree_ray::KDTree
source · pub struct KDTree { /* private fields */ }
Expand description
The KD-tree data structure.
Implementations§
source§impl KDTree
impl KDTree
sourcepub fn build_config<S: Bounded>(shapes: &Vec<S>, config: &BuilderConfig) -> Self
pub fn build_config<S: Bounded>(shapes: &Vec<S>, config: &BuilderConfig) -> Self
This function is used to build a new KD-tree. You need to provide a
Vec
of shapes that implement Bounded
trait.
You also should give a configuration.
Panic if the shapes
is empty.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for KDTree
impl Send for KDTree
impl Sync for KDTree
impl Unpin for KDTree
impl UnwindSafe for KDTree
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