pub struct Camera3D { /* private fields */ }Implementations§
Trait Implementations§
source§impl Camera for Camera3D
impl Camera for Camera3D
fn position(&self) -> &Vec3
fn set_position(&mut self, position: Vec3)
fn set_width(&mut self, width: f32)
fn set_height(&mut self, height: f32)
fn projection(&self) -> Mat4
fn view(&self) -> Mat4
fn move_camera(&mut self, dir: Movement, dt: f32)
fn set_size(&mut self, width: f32, height: f32)
impl Copy for Camera3D
Auto Trait Implementations§
impl RefUnwindSafe for Camera3D
impl Send for Camera3D
impl Sync for Camera3D
impl Unpin for Camera3D
impl UnwindSafe for Camera3D
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