[−][src]Trait ray_tracer::tree::Tree
Required methods
fn add_actor(&mut self, actor: Rc<Actor<T>>) -> bool
fn get_hit(
&self,
ray: &Ray<T>,
t_min: T,
t_max: T
) -> Option<(Rc<Actor<T>>, Hit<T>)>
&self,
ray: &Ray<T>,
t_min: T,
t_max: T
) -> Option<(Rc<Actor<T>>, Hit<T>)>
Implementors
impl<T> Tree<T> for BinaryTree<T> where
T: Float,
[src]
T: Float,
fn add_actor(&mut self, actor: Rc<Actor<T>>) -> bool
[src]
fn get_hit(
&self,
ray: &Ray<T>,
t_min: T,
t_max: T
) -> Option<(Rc<Actor<T>>, Hit<T>)>
[src]
&self,
ray: &Ray<T>,
t_min: T,
t_max: T
) -> Option<(Rc<Actor<T>>, Hit<T>)>
impl<T> Tree<T> for LinearTree<T> where
T: Float,
[src]
T: Float,
fn add_actor(&mut self, actor: Rc<Actor<T>>) -> bool
[src]
fn get_hit(
&self,
ray: &Ray<T>,
t_min: T,
t_max: T
) -> Option<(Rc<Actor<T>>, Hit<T>)>
[src]
&self,
ray: &Ray<T>,
t_min: T,
t_max: T
) -> Option<(Rc<Actor<T>>, Hit<T>)>
impl<T> Tree<T> for Octree<T> where
T: Float,
[src]
T: Float,