Show / Hide Table of Contents

Class PolygonArea

An area implemenation based on a simple polygon.

Inheritance
System.Object
PolygonArea
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public class PolygonArea : IArea

Constructors

PolygonArea(Polygon)

Creates a new polygon area.

Declaration
public PolygonArea(Polygon polygon)
Parameters
Polygon polygon

The polygon

Methods

Intersect(Single, Single, Single, Single)

Returns the location(s) the given line intersects with the area's boundary. Returns null if there is no intersection.

Declaration
public Coordinate[] Intersect(float latitude1, float longitude1, float latitude2, float longitude2)
Parameters
System.Single latitude1

System.Single longitude1

System.Single latitude2

System.Single longitude2

Returns
Coordinate[]

Implements
IArea.Intersect(Single, Single, Single, Single)

Overlaps(Single, Single)

Returns true if the given coordinate is inside the area.

Declaration
public bool Overlaps(float latitude, float longitude)
Parameters
System.Single latitude

System.Single longitude

Returns
System.Boolean

Implements
IArea.Overlaps(Single, Single)
Back to top Built by Itinero, MIT licensed.