[][src]Struct pbrt::cameras::perspective::PerspectiveCamera

pub struct PerspectiveCamera {
    pub camera_to_world: AnimatedTransform,
    pub shutter_open: Float,
    pub shutter_close: Float,
    pub film: Arc<Film>,
    pub medium: Option<Arc<Medium>>,
    pub raster_to_camera: Transform,
    pub lens_radius: Float,
    pub focal_distance: Float,
    pub dx_camera: Vector3f,
    pub dy_camera: Vector3f,
    pub a: Float,
}

Fields

camera_to_world: AnimatedTransformshutter_open: Floatshutter_close: Floatfilm: Arc<Film>medium: Option<Arc<Medium>>raster_to_camera: Transformlens_radius: Floatfocal_distance: Floatdx_camera: Vector3fdy_camera: Vector3fa: Float

Methods

impl PerspectiveCamera[src]

pub fn new(
    camera_to_world: AnimatedTransform,
    screen_window: Bounds2f,
    shutter_open: Float,
    shutter_close: Float,
    lens_radius: Float,
    focal_distance: Float,
    fov: 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,
    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 Send for PerspectiveCamera

impl Unpin for PerspectiveCamera

impl Sync for PerspectiveCamera

impl UnwindSafe for PerspectiveCamera

impl RefUnwindSafe for PerspectiveCamera

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

impl<T> SetParameter for T[src]