[−][src]Trait geo::algorithm::intersects::Intersects
Checks if the geometry A intersects the geometry B.
Required methods
fn intersects(&self, rhs: &Rhs) -> bool
Checks if the geometry A intersects the geometry B.
Examples
use geo::{Coordinate, Point, LineString}; use geo::algorithm::intersects::Intersects; let linestring = LineString::from(vec![(3., 2.), (7., 6.)]); assert!(linestring.intersects(&LineString::from(vec![(3., 4.), (8., 4.)]))); assert!(!linestring.intersects(&LineString::from(vec![(9., 2.), (11., 5.)])));
Implementors
impl<T> Intersects<Line<T>> for Line<T> where
T: Float,
[src]
T: Float,
fn intersects(&self, line: &Line<T>) -> bool
[src]
impl<T> Intersects<Line<T>> for LineString<T> where
T: Float,
[src]
T: Float,
fn intersects(&self, line: &Line<T>) -> bool
[src]
impl<T> Intersects<Line<T>> for Point<T> where
T: Float,
[src]
T: Float,
fn intersects(&self, line: &Line<T>) -> bool
[src]
impl<T> Intersects<Line<T>> for Polygon<T> where
T: Float,
[src]
T: Float,
fn intersects(&self, line: &Line<T>) -> bool
[src]
impl<T> Intersects<LineString<T>> for Line<T> where
T: Float,
[src]
T: Float,
fn intersects(&self, linestring: &LineString<T>) -> bool
[src]
impl<T> Intersects<LineString<T>> for LineString<T> where
T: Float,
[src]
T: Float,
fn intersects(&self, linestring: &LineString<T>) -> bool
[src]
impl<T> Intersects<LineString<T>> for Polygon<T> where
T: Float,
[src]
T: Float,
fn intersects(&self, linestring: &LineString<T>) -> bool
[src]
impl<T> Intersects<Point<T>> for Line<T> where
T: Float,
[src]
T: Float,
fn intersects(&self, p: &Point<T>) -> bool
[src]
impl<T> Intersects<Polygon<T>> for Line<T> where
T: Float,
[src]
T: Float,
fn intersects(&self, p: &Polygon<T>) -> bool
[src]
impl<T> Intersects<Polygon<T>> for LineString<T> where
T: Float,
[src]
T: Float,
fn intersects(&self, polygon: &Polygon<T>) -> bool
[src]
impl<T> Intersects<Polygon<T>> for Polygon<T> where
T: Float,
[src]
T: Float,
fn intersects(&self, polygon: &Polygon<T>) -> bool
[src]
impl<T> Intersects<Polygon<T>> for Rect<T> where
T: Float,
[src]
T: Float,
fn intersects(&self, polygon: &Polygon<T>) -> bool
[src]
impl<T> Intersects<Rect<T>> for Polygon<T> where
T: Float,
[src]
T: Float,
fn intersects(&self, bounding_rect: &Rect<T>) -> bool
[src]
impl<T> Intersects<Rect<T>> for Rect<T> where
T: Float,
[src]
T: Float,