Struct fpvsetup::MonitorConfiguration[][src]

pub struct MonitorConfiguration {
    pub dimensions: MonitorDimensions,
    pub distance: Length,
}

Measurements of the monitor dimensions and position.

Fields

dimensions: MonitorDimensions

The dimensions of the monitor. Those contain the width and height, diagonal length and aspect ratio of the monitor.

distance: Length

The distance at which the viewer is said to be located from the monitor’s surface.

Implementations

impl MonitorConfiguration[src]

pub fn fov(self) -> Angle[src]

Calculates the viewing angle from the viewpoint towards the monitor.

More exactly, this is the angle at the viewpoint vertex of a triangle constructed from the screen width as a line segment and two line segments between two verticies of the screen width line segment and the viewpoint vertex.

pub fn monitor_fov_for_distance(
    self,
    distance: Length,
    relative_to_monitor: bool
) -> Angle
[src]

Calculates an FOV for the monitor as the starting point such that a given distance (either relative to the eye or the monitor) will be represented with accurate scale.

Trait Implementations

impl Clone for MonitorConfiguration[src]

impl Copy for MonitorConfiguration[src]

impl Debug for MonitorConfiguration[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<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.