Пример #1
0
        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);
        }
Пример #2
0
        public static bool Contains(this MapRegion thisRegion, MapRegion region)
        {
            var myRect    = thisRegion.GetRectangle();
            var otherRect = region.GetRectangle();
            var intersect = myRect.IntersectsWith(otherRect);

            return(intersect);
        }