Struct smallpt::scene::Scene [−][src]
Fields
objects: Vec<Box<Traceable>>
Methods
impl Scene
[src]
impl Scene
pub fn add(&mut self, obj: Box<Traceable>)
[src]
pub fn add(&mut self, obj: Box<Traceable>)
pub fn init() -> Scene
[src]
pub fn init() -> Scene
pub fn intersect(&self, ray: Ray) -> Option<Hit>
[src]
pub fn intersect(&self, ray: Ray) -> Option<Hit>