Struct fpvsetup::MonitorConfiguration [−][src]
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]
self,
distance: Length,
relative_to_monitor: bool
) -> Angle
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]
fn clone(&self) -> MonitorConfiguration
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for MonitorConfiguration
[src]
impl Debug for MonitorConfiguration
[src]
Auto Trait Implementations
impl RefUnwindSafe for MonitorConfiguration
impl Send for MonitorConfiguration
impl Sync for MonitorConfiguration
impl Unpin for MonitorConfiguration
impl UnwindSafe for MonitorConfiguration
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,