Struct geo::Polygon [] [src]

pub struct Polygon(pub LineString, pub Vec<LineString>);

Trait Implementations

impl Debug for Polygon
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for Polygon
[src]

fn clone(&self) -> Polygon

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 Polygon
[src]

fn eq(&self, __arg_0: &Polygon) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Polygon) -> bool

This method tests for !=.

impl Centroid for Polygon
[src]

fn centroid(&self) -> Option<Point>

Centroid on a Polygon. See: https://en.wikipedia.org/wiki/Centroid

impl Contains<Point> for Polygon
[src]

fn contains(&self, p: &Point) -> bool

Checks if the geometry A is completely inside the B geometry. Read more

impl Contains<LineString> for Polygon
[src]

fn contains(&self, linestring: &LineString) -> bool

Checks if the geometry A is completely inside the B geometry. Read more

impl Intersects<LineString> for Polygon
[src]

fn intersects(&self, linestring: &LineString) -> bool

Checks if the geometry A intersects the geometry B. Read more

impl Area for Polygon
[src]

fn area(&self) -> f64