pub struct Bound {
pub x1: f64,
pub y1: f64,
pub x2: f64,
pub y2: f64,
pub is_bounded: bool,
}
Expand description
A bounding box
Fields§
§x1: f64
smaller x
y1: f64
smaller y
x2: f64
bigger x
y2: f64
bigger y
is_bounded: bool
item is bounded
Implementations§
Source§impl Bound
impl Bound
Sourcepub fn swap_if_needed(&mut self)
pub fn swap_if_needed(&mut self)
call this when you constructed a default bound and potentionally had zero updates
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Bound
impl RefUnwindSafe for Bound
impl Send for Bound
impl Sync for Bound
impl Unpin for Bound
impl UnwindSafe for Bound
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