Polygon Class

Version 1.0.0-beta002
.NET Framework 4.7
Namespace Skybrud.Essentials.Maps.Geometry.Shapes
Assembly Skybrud.Essentials.Maps.dll
Visibility Public
Interfaces IPolygon, IShape, IGeometry
Inheritance Object
public class Polygon : IPolygon, IShape, IGeometry { }

Properties

Type Name Summary
Array of IPoint Outer

Gets the array of points making up the outer polygon.

Array of Array of IPoint Inner

Gets the array of points making up any inner polygons.

Methods

Adds point to the polygon.

Removes all points from the polygon.

Returns whether the polygon contains the point defined by the specified latitude and longitude.

Contains(IPoint) (virtual)

Returns whether the polygon contains the specified point.

GetArea() (virtual)

Returns the area of the polygon in square metres.

GetBoundingBox() (virtual)

Returns an instance of IRectangle representing the bounding box of the polygon.

GetCenter() (virtual)

Returns an instance of IPoint representing the center of the polygon.

GetCircumference() (virtual)

Returns the circumference of the polygon in metres.

Inserts point at the specified index.

Load(string) (static)

Loads a polygon from the file at the specified path.

Removes the specified point from the polygon.

Removes the point at index.