Struct geo::Bbox [−][src]
pub struct Bbox<T> where
T: CoordinateType, {
pub xmin: T,
pub xmax: T,
pub ymin: T,
pub ymax: T,
}A container for the bounding box of a Geometry
Fields
xmin: T
xmax: T
ymin: T
ymax: T
Trait Implementations
impl<T: PartialEq> PartialEq for Bbox<T> where
T: CoordinateType, [src]
impl<T: PartialEq> PartialEq for Bbox<T> where
T: CoordinateType, fn eq(&self, other: &Bbox<T>) -> bool[src]
fn eq(&self, other: &Bbox<T>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Bbox<T>) -> bool[src]
fn ne(&self, other: &Bbox<T>) -> boolThis method tests for !=.
impl<T: Clone> Clone for Bbox<T> where
T: CoordinateType, [src]
impl<T: Clone> Clone for Bbox<T> where
T: CoordinateType, fn clone(&self) -> Bbox<T>[src]
fn clone(&self) -> Bbox<T>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl<T: Copy> Copy for Bbox<T> where
T: CoordinateType, [src]
impl<T: Copy> Copy for Bbox<T> where
T: CoordinateType, impl<T: Debug> Debug for Bbox<T> where
T: CoordinateType, [src]
impl<T: Debug> Debug for Bbox<T> where
T: CoordinateType, fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<T> Add for Bbox<T> where
T: CoordinateType + ToPrimitive, [src]
impl<T> Add for Bbox<T> where
T: CoordinateType + ToPrimitive, type Output = Bbox<T>
The resulting type after applying the + operator.
fn add(self, rhs: Bbox<T>) -> Bbox<T>[src]
fn add(self, rhs: Bbox<T>) -> Bbox<T>Add a BoundingBox to the given BoundingBox.
use geo::Bbox; let bbox0 = Bbox{xmin: 0., xmax: 10000., ymin: 10., ymax: 100.}; let bbox1 = Bbox{xmin: 100., xmax: 1000., ymin: 100., ymax: 1000.}; let bbox = bbox0 + bbox1; assert_eq!(0., bbox.xmin); assert_eq!(10000., bbox.xmax); assert_eq!(10., bbox.ymin); assert_eq!(1000., bbox.ymax);
impl<T> AddAssign for Bbox<T> where
T: CoordinateType + ToPrimitive, [src]
impl<T> AddAssign for Bbox<T> where
T: CoordinateType + ToPrimitive, fn add_assign(&mut self, rhs: Bbox<T>)[src]
fn add_assign(&mut self, rhs: Bbox<T>)Add a BoundingBox to the given BoundingBox.
use geo::Bbox; let mut bbox0 = Bbox{xmin: 0., xmax: 10000., ymin: 10., ymax: 100.}; let bbox1 = Bbox{xmin: 100., xmax: 1000., ymin: 100., ymax: 1000.}; bbox0 += bbox1; assert_eq!(0., bbox0.xmin); assert_eq!(10000., bbox0.xmax); assert_eq!(10., bbox0.ymin); assert_eq!(1000., bbox0.ymax);
impl<T> Centroid<T> for Bbox<T> where
T: Float, [src]
impl<T> Centroid<T> for Bbox<T> where
T: Float, type Output = Point<T>
fn centroid(&self) -> Self::Output[src]
fn centroid(&self) -> Self::OutputSee: https://en.wikipedia.org/wiki/Centroid Read more
impl<T> Contains<Point<T>> for Bbox<T> where
T: CoordinateType, [src]
impl<T> Contains<Point<T>> for Bbox<T> where
T: CoordinateType, fn contains(&self, p: &Point<T>) -> bool[src]
fn contains(&self, p: &Point<T>) -> boolChecks if rhs is completely contained within self. Read more
impl<T> Contains<Bbox<T>> for Bbox<T> where
T: CoordinateType, [src]
impl<T> Contains<Bbox<T>> for Bbox<T> where
T: CoordinateType, fn contains(&self, bbox: &Bbox<T>) -> bool[src]
fn contains(&self, bbox: &Bbox<T>) -> boolChecks if rhs is completely contained within self. Read more
impl<T> Intersects<Bbox<T>> for Bbox<T> where
T: Float, [src]
impl<T> Intersects<Bbox<T>> for Bbox<T> where
T: Float, fn intersects(&self, bbox: &Bbox<T>) -> bool[src]
fn intersects(&self, bbox: &Bbox<T>) -> boolChecks if the geometry A intersects the geometry B. Read more
impl<T> Intersects<Polygon<T>> for Bbox<T> where
T: Float, [src]
impl<T> Intersects<Polygon<T>> for Bbox<T> where
T: Float, fn intersects(&self, polygon: &Polygon<T>) -> bool[src]
fn intersects(&self, polygon: &Polygon<T>) -> boolChecks if the geometry A intersects the geometry B. Read more
impl<T> Intersects<Bbox<T>> for Polygon<T> where
T: Float, [src]
impl<T> Intersects<Bbox<T>> for Polygon<T> where
T: Float, fn intersects(&self, bbox: &Bbox<T>) -> bool[src]
fn intersects(&self, bbox: &Bbox<T>) -> boolChecks if the geometry A intersects the geometry B. Read more
impl<T> Area<T> for Bbox<T> where
T: Float, [src]
impl<T> Area<T> for Bbox<T> where
T: Float,