pub struct SimpleOctree3 { /* private fields */ }Expand description
Better simple octree with point storage for sphere queries.
Implementations§
Source§impl SimpleOctree3
impl SimpleOctree3
pub fn new(bounds: OctAabb) -> Self
pub fn insert(&mut self, p: [f32; 3]) -> usize
pub fn query_aabb(&self, query: &OctAabb) -> Vec<usize>
pub fn query_sphere(&self, center: &[f32; 3], r: f32) -> Vec<usize>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn clear(&mut self)
pub fn bounds(&self) -> &OctAabb
Auto Trait Implementations§
impl Freeze for SimpleOctree3
impl RefUnwindSafe for SimpleOctree3
impl Send for SimpleOctree3
impl Sync for SimpleOctree3
impl Unpin for SimpleOctree3
impl UnsafeUnpin for SimpleOctree3
impl UnwindSafe for SimpleOctree3
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