pub struct BBox {
pub x: f32,
pub y: f32,
pub w: f32,
pub h: f32,
}Expand description
A normalized bounding box: all fields in [0, 1] relative to the frame,
(x, y) the top-left corner and (w, h) the size. Normalized so a box
survives a downstream scale / crop without a coordinate rewrite.
Fields§
§x: f32§y: f32§w: f32§h: f32Implementations§
Trait Implementations§
impl Copy for BBox
impl StructuralPartialEq for BBox
Auto Trait Implementations§
impl Freeze for BBox
impl RefUnwindSafe for BBox
impl Send for BBox
impl Sync for BBox
impl Unpin for BBox
impl UnsafeUnpin for BBox
impl UnwindSafe for BBox
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