Struct geo::LineString
[−]
[src]
pub struct LineString(pub Vec<Point>);
Trait Implementations
impl Debug for LineString[src]
impl Clone for LineString[src]
fn clone(&self) -> LineString
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl PartialEq for LineString[src]
fn eq(&self, __arg_0: &LineString) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &LineString) -> bool
This method tests for !=.
impl Centroid for LineString[src]
fn centroid(&self) -> Option<Point>
Centroid on a LineString is the mean of the middle of the segment weighted by the length of the segments.
impl Contains<Point> for LineString[src]
fn contains(&self, p: &Point) -> bool
Checks if the geometry A is completely inside the B geometry. Read more
impl Intersects<LineString> for LineString[src]
fn intersects(&self, linestring: &LineString) -> bool
Checks if the geometry A intersects the geometry B. Read more