pub enum ProjectionType {
Perspective {
fov_y_radians: f32,
},
Orthographic {
width: f32,
height: f32,
},
}Expand description
Defines the type of camera projection.
Variants§
Perspective
Perspective projection with field of view.
Orthographic
Orthographic projection with view bounds.
Trait Implementations§
Source§impl Clone for ProjectionType
impl Clone for ProjectionType
Source§fn clone(&self) -> ProjectionType
fn clone(&self) -> ProjectionType
Returns a duplicate of the value. Read more
1.0.0 · 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 ProjectionType
impl Debug for ProjectionType
Source§impl PartialEq for ProjectionType
impl PartialEq for ProjectionType
impl Copy for ProjectionType
impl StructuralPartialEq for ProjectionType
Auto Trait Implementations§
impl Freeze for ProjectionType
impl RefUnwindSafe for ProjectionType
impl Send for ProjectionType
impl Sync for ProjectionType
impl Unpin for ProjectionType
impl UnwindSafe for ProjectionType
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