pub struct BBox {
pub valid: bool,
pub llx: f32,
pub lly: f32,
pub urx: f32,
pub ury: f32,
}Fields§
§valid: bool§llx: f32§lly: f32§urx: f32§ury: f32Implementations§
Source§impl BBox
impl BBox
pub fn new() -> BBox
pub fn addpoint(&mut self, px: f32, py: f32)
pub fn area(&self) -> f32
pub fn dx(&self) -> f32
pub fn dy(&self) -> f32
pub fn center(&self) -> Point
pub fn expand(&mut self, other: &BBox)
pub fn split_h(&self, bias: f32) -> (BBox, BBox)
pub fn split_v(&self, bias: f32) -> (BBox, BBox)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BBox
impl RefUnwindSafe for BBox
impl Send for BBox
impl Sync for BBox
impl Unpin 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