Trait octree::Locatable

source ·
pub trait Locatable {
    // Required method
    fn get_location(&self) -> [f32; 3];
}
Expand description

Calculates the location of your object in a 3d space. Your data structure must implement this trait so Octree can can get location of each data point. A sample implementation is provided in Point3D.

Required Methods§

source

fn get_location(&self) -> [f32; 3]

Implementors§