MapsExtensionsIsPointInPolygon Method
Checks if point is inside polygon,
using the Ray-Casting Algorithm (also known as even-odd rule).
This algorithm works for both convex and concave polygons.
Namespace: MobileTrack.Web.Components.ExtensionsAssembly: MobileTrack.Web.Components (in MobileTrack.Web.Components.dll) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
public static bool IsPointInPolygon(
this List<LatLngLiteral> polygon,
LatLngLiteral point
)
- polygon ListLatLngLiteral
- Polygon to test against
- point LatLngLiteral
- Point to test against
Boolean if
point is inside
polygon.In Visual Basic and C#, you can call this method as an instance method on any object of type
ListLatLngLiteral. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).