Beispiel #1
0
 /// <summary>
 ///     Verifies if a given vector point is contained in a given polygon of points.
 /// </summary>
 /// <param name="point">The originating point.</param>
 /// <param name="polygonPoints">The polygon points. A minimum of three is required.</param>
 public static bool IsPointInPolygon(GeoSpatialPoint point, IEnumerable <GeoSpatialPoint> polygonPoints)
 {
     return(IsPointInPolygon(point.ToVector(), polygonPoints?.Select(p => p.ToVector())));
 }