Struct rs_pbrt::cameras::orthographic::OrthographicCamera
source · [−]pub struct OrthographicCamera {Show 13 fields
pub camera_to_world: AnimatedTransform,
pub shutter_open: Float,
pub shutter_close: Float,
pub film: Arc<Film>,
pub medium: Option<Arc<Medium>>,
pub camera_to_screen: Transform,
pub raster_to_camera: Transform,
pub screen_to_raster: Transform,
pub raster_to_screen: Transform,
pub lens_radius: Float,
pub focal_distance: Float,
pub dx_camera: Vector3f,
pub dy_camera: Vector3f,
}
Fields
camera_to_world: AnimatedTransform
shutter_open: Float
shutter_close: Float
film: Arc<Film>
medium: Option<Arc<Medium>>
camera_to_screen: Transform
raster_to_camera: Transform
screen_to_raster: Transform
raster_to_screen: Transform
lens_radius: Float
focal_distance: Float
dx_camera: Vector3f
dy_camera: Vector3f
Implementations
sourceimpl OrthographicCamera
impl OrthographicCamera
pub fn new(
camera_to_world: AnimatedTransform,
screen_window: Bounds2f,
shutter_open: Float,
shutter_close: Float,
lens_radius: Float,
focal_distance: Float,
film: Arc<Film>,
medium: Option<Arc<Medium>>
) -> Self
pub fn create(
params: &ParamSet,
cam2world: AnimatedTransform,
film: Arc<Film>,
medium: Option<Arc<Medium>>
) -> Arc<Camera>
pub fn generate_ray_differential(
&self,
sample: &CameraSample,
ray: &mut Ray
) -> Float
pub fn we(&self, _ray: &Ray, _p_raster2: Option<&mut Point2f>) -> Spectrum
pub fn pdf_we(&self, _ray: &Ray) -> (Float, Float)
pub fn sample_wi(
&self,
_iref: &InteractionCommon,
_lens_intr: &mut InteractionCommon,
_u: Point2f,
_wi: &mut Vector3f,
_pdf: &mut Float,
_p_raster: &mut Point2f,
_vis: &mut VisibilityTester<'_, '_>
) -> Spectrum
pub fn get_shutter_open(&self) -> Float
pub fn get_shutter_close(&self) -> Float
pub fn get_film(&self) -> Arc<Film>
Auto Trait Implementations
impl RefUnwindSafe for OrthographicCamera
impl Send for OrthographicCamera
impl Sync for OrthographicCamera
impl Unpin for OrthographicCamera
impl UnwindSafe for OrthographicCamera
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more