public static bool Contains(this MapRegion thisRegion, MapCoordinate position) { var myRect = thisRegion.GetRectangle(); var positionInRegion = myRect.Contains((float)position.Latitude, (float)position.Longitude); return(positionInRegion); }
public static bool Contains(this MapRegion thisRegion, MapRegion region) { var myRect = thisRegion.GetRectangle(); var otherRect = region.GetRectangle(); var intersect = myRect.IntersectsWith(otherRect); return(intersect); }