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§

source§

impl OrthographicCamera

source

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

source

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

source

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

source

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

source

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

source

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

source

pub fn get_shutter_open(&self) -> Float

source

pub fn get_shutter_close(&self) -> Float

source

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

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Pointable for T

source§

const ALIGN: usize = mem::align_of::<T>()

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.