I draw into mapControl a polygon and I have another geopoint(47.0025462722356, 28.7778985977174) this is into this polygon. how to create a function that return if a GeoPoint is into a polygon or not? Thank you a lot
private void DrawPolygon()
{
VectorItemsLayer layer = VectorItemsLayer)this.mapControl.Layers[1];
MapItemStorage ItemStorage = (MapItemStorage)layer.Data;
var path = new MapPath();
var segment = new MapPathSegment();
segment.Points.AddRange(new GeoPoint[]
{
new GeoPoint(47.000751662342765, 28.782015716126669),
new GeoPoint(47.003499105949331, 28.779784489235578),
new GeoPoint(47.005060446204077, 28.776670571833844),
new GeoPoint(47.002626050570065, 28.774355254904908),
new GeoPoint(47.000264065129222, 28.779487220183803),
new GeoPoint(47.000751662342765, 28.782015716126669)
});
path.Segments.Add(segment);
ItemStorage.Items.Add(path);
}