Struct ascending_camera::camera::Camera
source · pub struct Camera<Controls>where
Controls: Controls,{ /* private fields */ }Implementations§
source§impl<Controls> Camera<Controls>where
Controls: Controls,
impl<Controls> Camera<Controls>where
Controls: Controls,
pub fn controls(&self) -> &Controls
pub fn controls_mut(&mut self) -> &mut Controls
pub fn eye(&self) -> [f32; 3]
pub fn new(projection: Projection, controls: Controls) -> Self
pub fn projection(&self) -> ColumnMatrix4<f32>
pub fn set_controls(&mut self, controls: Controls) -> Controls
pub fn set_projection(&mut self, projection: Projection)
pub fn update(&mut self, delta: f32) -> bool
pub fn view(&self) -> ColumnMatrix4<f32>
pub fn scale(&self) -> f32
Trait Implementations§
Auto Trait Implementations§
impl<Controls> Freeze for Camera<Controls>where
Controls: Freeze,
impl<Controls> RefUnwindSafe for Camera<Controls>where
Controls: RefUnwindSafe,
impl<Controls> Send for Camera<Controls>where
Controls: Send,
impl<Controls> Sync for Camera<Controls>where
Controls: Sync,
impl<Controls> Unpin for Camera<Controls>where
Controls: Unpin,
impl<Controls> UnwindSafe for Camera<Controls>where
Controls: UnwindSafe,
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