[][src]Struct pbrt::cameras::orthographic::OrthographicCamera

pub struct OrthographicCamera {
    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: AnimatedTransformshutter_open: Floatshutter_close: Floatfilm: Arc<Film>medium: Option<Arc<Medium>>camera_to_screen: Transformraster_to_camera: Transformscreen_to_raster: Transformraster_to_screen: Transformlens_radius: Floatfocal_distance: Floatdx_camera: Vector3fdy_camera: Vector3f

Implementations

impl OrthographicCamera[src]

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
[src]

pub fn create(
    params: &ParamSet,
    cam2world: AnimatedTransform,
    film: Arc<Film>,
    medium: Option<Arc<Medium>>
) -> Arc<Camera>
[src]

pub fn generate_ray_differential(
    &self,
    sample: &CameraSample,
    ray: &mut Ray
) -> Float
[src]

pub fn we(&self, _ray: &Ray, _p_raster2: Option<&mut Point2f>) -> Spectrum[src]

pub fn pdf_we(&self, _ray: &Ray) -> (Float, Float)[src]

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
[src]

pub fn get_shutter_open(&self) -> Float[src]

pub fn get_shutter_close(&self) -> Float[src]

pub fn get_film(&self) -> Arc<Film>[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.