Trait dasom::shape::Shape[][src]

pub trait Shape {
    fn hit(&self, ray: Ray, t_range: Range<Real>) -> Option<HitRecord>;
}

Required methods

fn hit(&self, ray: Ray, t_range: Range<Real>) -> Option<HitRecord>[src]

Loading content...

Implementors

impl Shape for Sphere[src]

impl Shape for Group[src]

Loading content...