pub struct Camera2D {
pub target: Vec2,
pub rotation: f32,
pub view_height: f32,
}Expand description
Camera expressed in world units, independent of display pixel dimensions.
Fields§
§target: Vec2World point at the center of the viewport.
rotation: f32Rotation in radians.
view_height: f32Visible world height.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Camera2D
impl RefUnwindSafe for Camera2D
impl Send for Camera2D
impl Sync for Camera2D
impl Unpin for Camera2D
impl UnsafeUnpin for Camera2D
impl UnwindSafe for Camera2D
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