pub struct Camera {
pub pan_x: f32,
pub pan_y: f32,
pub zoom: f32,
}Expand description
The camera transform: pan + zoom over the world. World point p projects to
screen as center + pan + p * zoom (the same affine nornir’s draw_graph
applies). Owned by the caller so navigation survives across frames.
Fields§
§pan_x: f32§pan_y: f32§zoom: f32Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Camera
impl RefUnwindSafe for Camera
impl Send for Camera
impl Sync for Camera
impl Unpin for Camera
impl UnsafeUnpin for Camera
impl UnwindSafe for Camera
Blanket Implementations§
impl<T> Allocation for T
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