PolygonUtils Class
Version 1.0.0-beta002
.NET Framework 4.7
| Namespace | Skybrud.Essentials.Maps |
|---|---|
| Assembly | Skybrud.Essentials.Maps.dll |
| Visibility | Public |
| Inheritance | Object |
Static class with various utility/helper methods for working with polygons.
public class PolygonUtils { }
Methods
|
Contains(IPoint[], IPoint)
(static)
Returns whether the polygon defined by the specified |
|
GetArea(IPoint[])
(static)
Returns the area of the polygon in square metres. |
|
GetArea(IPoint[], double)
(static)
Returns the area of the polygon in square metres. |
|
GetBoundingBox(IEnumerable<T>)
(static)
Returns an instance of IRectangle representing the bounding box of the polygon with the specified |
|
GetCircumference(IPoint[])
(static)
Returns the circumference of the polygon represented by the specified |
|
GetCoordinates(IPolygon)
(static)
Returns a two-dimensional array representing the points of the specified |
|
ToXyArray(IPoint[][])
(static)
Returns a three-dimensional array of X and Y coordinates based on the specified |