Struct hmdee::info::Lens[][src]

pub struct Lens {
    pub resolution: (u32, u32),
    pub field_of_view: FieldOfView,
    pub distortion_coefficients: Vec<Scalar>,
    pub chromatic_aberration_factors: ChromaticAberrationFactors,
}

An individual lens.

Fields

resolution: (u32, u32)

The screen resolution of the lens.

field_of_view: FieldOfView

The FOV of the lens.

distortion_coefficients: Vec<Scalar>

The coefficients for the barrel distortion equation with this lens.

The coefficients Ki correspond to the pincushion distortion equation:

p' = p (1 + K1 r^2 + K2 r^4 + ... + Kn r^(2n))
chromatic_aberration_factors: ChromaticAberrationFactors

Chromatic aberration properties.

Trait Implementations

impl Clone for Lens[src]

impl Debug for Lens[src]

impl PartialEq<Lens> for Lens[src]

impl PartialOrd<Lens> for Lens[src]

impl StructuralPartialEq for Lens[src]

Auto Trait Implementations

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> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,