Trait rust_pathtracer::camera::Camera3D
source · pub trait Camera3D: Sync + Send {
// Required methods
fn new() -> Self
where Self: Sized;
fn set(&mut self, origin: PTF3, center: PTF3);
fn set_fov(&mut self, fov: PTF);
fn gen_ray(&self, p: Vector2<PTF>, offset: PTF2, width: PTF, height: PTF) -> Ray;
}Expand description
Trait for abstracting cameras.