pub struct CameraOtho { /* private fields */ }Expand description
A struct for an orthographic camera object in the game engine.
Implementations§
Source§impl CameraOtho
impl CameraOtho
Sourcepub fn set_position(&mut self, val: &Vec2)
pub fn set_position(&mut self, val: &Vec2)
Sets the position of the camera in the game world.
Sourcepub fn get_position(&self) -> Vec2
pub fn get_position(&self) -> Vec2
Gets the position of the camera in the game world.
Trait Implementations§
Source§impl Clone for CameraOtho
impl Clone for CameraOtho
Source§fn clone(&self) -> CameraOtho
fn clone(&self) -> CameraOtho
Returns a copy 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 Drop for CameraOtho
impl Drop for CameraOtho
Auto Trait Implementations§
impl Freeze for CameraOtho
impl RefUnwindSafe for CameraOtho
impl Send for CameraOtho
impl Sync for CameraOtho
impl Unpin for CameraOtho
impl UnwindSafe for CameraOtho
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