pub enum Fov {
FocalRatio(f32),
Equiv35mm(f32),
Horizontal(Angle),
Vertical(Angle),
Diagonal(Angle),
}Expand description
Camera field of view.
Specifies how wide or narrow the angle of view of the camera is. The smaller the angle, the more “zoomed in” the image is.
Variants§
FocalRatio(f32)
Ratio of focal length to aperture size.
This value is also called the 𝑓-number. The value of 1.0 corresponds to a horizontal angle of view of 90°. Values less than 1.0 correspond to wider and values greater than 1.0 to narrower angles of view.
Equiv35mm(f32)
Focal length in 35mm-equivalent millimeters.
For instance, the value of 28.0 corresponds to the moderate wide-angle view of a 28mm “full-frame” lens.
Horizontal(Angle)
Angle of view as measured from the left to the right edge of the image.
Vertical(Angle)
Angle of view as measured from the top to the bottom edge of the image.
Diagonal(Angle)
Angle of view as measured between two opposite corners of the image.
Implementations§
Trait Implementations§
impl Copy for Fov
impl StructuralPartialEq for Fov
Auto Trait Implementations§
impl Freeze for Fov
impl RefUnwindSafe for Fov
impl Send for Fov
impl Sync for Fov
impl Unpin for Fov
impl UnwindSafe for Fov
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