pub struct Extent {
pub w: f32,
pub h: f32,
}Expand description
The world rectangle every display layer stretches to.
The whole model shares one extent. An agent layer and a field layer then cannot disagree about how big the world is.
Fields§
§w: f32Width in world units.
h: f32Height in world units.
Implementations§
Trait Implementations§
impl Copy for Extent
impl StructuralPartialEq for Extent
Auto Trait Implementations§
impl Freeze for Extent
impl RefUnwindSafe for Extent
impl Send for Extent
impl Sync for Extent
impl Unpin for Extent
impl UnsafeUnpin for Extent
impl UnwindSafe for Extent
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