[][src]Trait ray_tracer::tree::Tree

pub trait Tree<T> where
    T: Float
{ 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>)>; }

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>)>

Loading content...

Implementors

impl<T> Tree<T> for BinaryTree<T> where
    T: Float
[src]

impl<T> Tree<T> for LinearTree<T> where
    T: Float
[src]

impl<T> Tree<T> for Octree<T> where
    T: Float
[src]

Loading content...