pub struct PinholeCamera {
pub intrinsics: CameraIntrinsics,
pub distortion: BrownConrady,
}Expand description
A pinhole camera with optional Brown–Conrady lens distortion.
Fields§
§intrinsics: CameraIntrinsicsIntrinsic calibration.
distortion: BrownConradyLens distortion coefficients.
Implementations§
Source§impl PinholeCamera
impl PinholeCamera
Sourcepub const fn new(intrinsics: CameraIntrinsics) -> Self
pub const fn new(intrinsics: CameraIntrinsics) -> Self
Creates a camera with no lens distortion.
Sourcepub const fn with_distortion(self, distortion: BrownConrady) -> Self
pub const fn with_distortion(self, distortion: BrownConrady) -> Self
Attaches a Brown–Conrady distortion model.
Trait Implementations§
Source§impl Clone for PinholeCamera
impl Clone for PinholeCamera
Source§fn clone(&self) -> PinholeCamera
fn clone(&self) -> PinholeCamera
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PinholeCamera
impl Debug for PinholeCamera
Source§impl PartialEq for PinholeCamera
impl PartialEq for PinholeCamera
Source§fn eq(&self, other: &PinholeCamera) -> bool
fn eq(&self, other: &PinholeCamera) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PinholeCamera
impl StructuralPartialEq for PinholeCamera
Auto Trait Implementations§
impl Freeze for PinholeCamera
impl RefUnwindSafe for PinholeCamera
impl Send for PinholeCamera
impl Sync for PinholeCamera
impl Unpin for PinholeCamera
impl UnsafeUnpin for PinholeCamera
impl UnwindSafe for PinholeCamera
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