MultiPolygon Class

Version 1.0.0-beta002
.NET Framework 4.7
Namespace Skybrud.Essentials.Maps.Geometry.Shapes
Assembly Skybrud.Essentials.Maps.dll
Visibility Public
Interfaces IMultiPolygon, IShape, IGeometry, IEnumerable<T>, IEnumerable
Inheritance Object

Class representing a collection of polygons.

public class MultiPolygon : IMultiPolygon, IShape, IGeometry, IEnumerable<T>, IEnumerable { }

Properties

Type Name Summary
Array of IPolygon Polygons

Gets the array of polygons making up the shape.

Methods

Adds the specified polygon to the collection.

Clears the collection of polygons.

Contains(IPoint) (virtual)

Returns whether this multi polygon contains the specified point.

GetArea() (virtual)

Returns the total area of the multi polygon, calculated in square metres.

GetBoundingBox() (virtual)

Returns a new rectangle representing the bounding box of this multi polygon.

GetCenter() (virtual)

Returns the center point (centroid) of this multi polygon. There is no guarentee that the center point is inside the multi polygon.

GetCircumference() (virtual)

Returns the total circumference of the multi polygon, calculated in metres.

GetEnumerator() (virtual)

Returns an that iterates through the underlying List<T>.

Inserts polygon ad the specified index.

Removes the specified polygon from the collection.

Removes the polygon at the specified index.