Class PolygonUtils
Inheritance
System.Object
PolygonUtils
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace:Mapbox.Utils
Assembly:cs.temp.dll.dll
Syntax
public static class PolygonUtils
Methods
PointInPolygon(Point2d<Single>, List<List<Point2d<Single>>>)
Method to check if a point is contained inside a polygon, ignores vertical axis (y axis)
Declaration
public static bool PointInPolygon(Point2d<float> p, List<List<Point2d<float>>> polygon)
Parameters
Type | Name | Description |
---|---|---|
Point2d<System.Single> | p | The point that is to be tested. |
System.Collections.Generic.List<System.Collections.Generic.List<Point2d<System.Single>>> | polygon | Polygon points. |
Returns
Type | Description |
---|---|
System.Boolean |
|