[][src]Trait smallpt::Traceable

pub trait Traceable: Send + Sync {
    fn intersect(&self, ray: &Ray, result: &mut Hit) -> bool;
fn get_primitive_type(&self) -> PrimitiveType; }

Required methods

fn intersect(&self, ray: &Ray, result: &mut Hit) -> bool

fn get_primitive_type(&self) -> PrimitiveType

Loading content...

Implementors

impl Traceable for Plane[src]

impl Traceable for Rectangle[src]

impl Traceable for Sphere[src]

impl Traceable for Triangle[src]

Loading content...