pub struct ProjectiveCamera {
pub base: BaseCamera,
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,
}
Fields§
§base: BaseCamera
§camera_to_screen: Transform
§raster_to_camera: Transform
§screen_to_raster: Transform
§raster_to_screen: Transform
§lens_radius: Float
§focal_distance: Float
Implementations§
Source§impl ProjectiveCamera
impl ProjectiveCamera
pub fn new( camera_to_world: &AnimatedTransform, camera_to_screen: &Transform, screen_window: &Bounds2f, shutter_open: Float, shutter_close: Float, lensr: Float, focald: Float, film: &Arc<RwLock<Film>>, medium: &Option<Arc<dyn Medium>>, ) -> Self
pub fn get_film(&self) -> Arc<RwLock<Film>>
pub fn get_medium(&self) -> Option<Arc<dyn Medium>>
pub fn get_shutter(&self) -> (Float, Float)
Trait Implementations§
Source§impl Clone for ProjectiveCamera
impl Clone for ProjectiveCamera
Source§fn clone(&self) -> ProjectiveCamera
fn clone(&self) -> ProjectiveCamera
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ProjectiveCamera
impl !RefUnwindSafe for ProjectiveCamera
impl Send for ProjectiveCamera
impl Sync for ProjectiveCamera
impl Unpin for ProjectiveCamera
impl !UnwindSafe for ProjectiveCamera
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more