pub struct BoxF {
pub xmin: f32,
pub xmax: f32,
pub ymin: f32,
pub ymax: f32,
}Expand description
Outward-rounded f32 bounding box – PostGIS box2df_from_gbox_p.
Fields§
§xmin: f32§xmax: f32§ymin: f32§ymax: f32Implementations§
Source§impl BoxF
impl BoxF
pub fn from_f64(xmin: f64, xmax: f64, ymin: f64, ymax: f64) -> BoxF
pub fn intersects(&self, o: &BoxF) -> bool
Sourcepub fn as_point(&self) -> Option<(f64, f64)>
pub fn as_point(&self) -> Option<(f64, f64)>
Degenerate box = the geometry is a point (its exact coordinates).
pub fn encode(&self) -> [u8; 16]
pub fn decode(b: &[u8]) -> Option<BoxF>
Trait Implementations§
impl Copy for BoxF
impl StructuralPartialEq for BoxF
Auto Trait Implementations§
impl Freeze for BoxF
impl RefUnwindSafe for BoxF
impl Send for BoxF
impl Sync for BoxF
impl Unpin for BoxF
impl UnsafeUnpin for BoxF
impl UnwindSafe for BoxF
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