Esempio n. 1
0
        // BOOL MAMapRectEqualToRect (MAMapRect rect1, MAMapRect rect2);
        //[DllImport("__Internal",EntryPoint = "MAMapRectEqualToRect")]
        //static extern bool _MAMapRectEqualToRect(MAMapRect rect1, MAMapRect rect2);
        ////
        public static bool MAMapRectEqualToRect(MAMapRect rect1, MAMapRect rect2)
        {
            var one = MAMapPointEqualToPoint(rect1.origin, rect2.origin);
            var two = MAMapSizeEqualToSize(rect1.size, rect2.size);

            return(one && two);
        }
Esempio n. 2
0
        // NSString * MAStringFromMapRect (MAMapRect rect);
        //[DllImport("__Internal",EntryPoint = "MAStringFromMapRect")]
        //static extern NSString _MAStringFromMapRect(MAMapRect rect);
        ////
        public static string MAStringFromMapRect(MAMapRect rect)
        {
            var a = MAStringFromMapPoint(rect.origin);
            var b = MAStringFromMapSize(rect.size);

            return(string.Format(@"{%@, %@}", a, b));
        }
Esempio n. 3
0
 //[Verify(PlatformInvoke)]
 static extern MAMapRect MAMapRectInset(MAMapRect rect, double dx, double dy);
Esempio n. 4
0
 //[Verify(PlatformInvoke)]
 static extern MAMapRect MAMapRectUnion(MAMapRect rect1, MAMapRect rect2);
Esempio n. 5
0
 //[Verify(PlatformInvoke)]
 static extern NSString MAStringFromMapRect(MAMapRect rect);
Esempio n. 6
0
 public static MAMapRect MAMapRectInset(MAMapRect rect, double dx, double dy)
 {
     return(_MAMapRectInset(rect, dx, dy));
 }
Esempio n. 7
0
 //[Verify(PlatformInvoke)]
 static extern double MAMapRectGetMaxY(MAMapRect rect);
Esempio n. 8
0
 public static bool MAMapRectContainsPoint(MAMapRect rect, MAMapPoint point)
 {
     return(_MAMapRectContainsPoint(rect, point));
 }
Esempio n. 9
0
 // double MAMapRectGetWidth (MAMapRect rect);
 //[DllImport("__Internal",EntryPoint = "MAMapRectGetWidth")]
 //static extern double _MAMapRectGetWidth(MAMapRect rect);
 ////
 public static double MAMapRectGetWidth(MAMapRect rect)
 {
     return(rect.size.width);
 }
Esempio n. 10
0
 //[Verify(PlatformInvoke)]
 static extern bool MAMapRectContainsRect(MAMapRect rect1, MAMapRect rect2);
Esempio n. 11
0
 // double MAMapRectGetMaxX (MAMapRect rect);
 //[DllImport("__Internal",EntryPoint = "MAMapRectGetMaxX")]
 //static extern double _MAMapRectGetMaxX(MAMapRect rect);
 ////
 public static double MAMapRectGetMaxX(MAMapRect rect)
 {
     return(rect.origin.x + rect.size.width);
 }
Esempio n. 12
0
 // double MAMapRectGetMaxY (MAMapRect rect);
 //[DllImport("__Internal",EntryPoint = "MAMapRectGetMaxY")]
 //static extern double _MAMapRectGetMaxY(MAMapRect rect);
 ////
 public static double MAMapRectGetMaxY(MAMapRect rect)
 {
     return(rect.origin.y + rect.size.height);
 }
Esempio n. 13
0
 // double MAMapRectGetMinY (MAMapRect rect);
 //[DllImport("__Internal",EntryPoint = "MAMapRectGetMinY")]
 //static extern double _MAMapRectGetMinY(MAMapRect rect);
 ////
 public static double MAMapRectGetMinY(MAMapRect rect)
 {
     return(rect.origin.y);
 }
Esempio n. 14
0
 public static bool MAMapRectContainsRect(MAMapRect rect1, MAMapRect rect2)
 {
     return(_MAMapRectContainsRect(rect1, rect2));
 }
Esempio n. 15
0
 public static bool MAMapRectIntersectsRect(MAMapRect rect1, MAMapRect rect2)
 {
     return(_MAMapRectIntersectsRect(rect1, rect2));
 }
Esempio n. 16
0
 //[Verify(PlatformInvoke)]
 static extern bool MAMapRectContainsPoint(MAMapRect rect, MAMapPoint point);
Esempio n. 17
0
 // double MAMapRectGetHeight (MAMapRect rect);
 //[DllImport("__Internal",EntryPoint = "MAMapRectGetHeight")]
 //static extern double _MAMapRectGetHeight(MAMapRect rect);
 ////
 public static double MAMapRectGetHeight(MAMapRect rect)
 {
     return(rect.size.height);
 }
Esempio n. 18
0
 //[Verify(PlatformInvoke)]
 static extern bool MAMapRectIntersectsRect(MAMapRect rect1, MAMapRect rect2);
Esempio n. 19
0
 //[Verify(PlatformInvoke)]
 static extern double MAMapRectGetHeight(MAMapRect rect);
Esempio n. 20
0
 //[Verify(PlatformInvoke)]
 static extern double MAMapRectGetMidX(MAMapRect rect);
Esempio n. 21
0
 //[Verify(PlatformInvoke)]
 static extern bool MAMapRectIsNull(MAMapRect rect);
Esempio n. 22
0
 //[Verify(PlatformInvoke)]
 static extern double MAMapRectGetWidth(MAMapRect rect);
Esempio n. 23
0
 public static MAMapRect MAMapRectUnion(MAMapRect rect1, MAMapRect rect2)
 {
     return(_MAMapRectUnion(rect1, rect2));
 }
Esempio n. 24
0
 //[Verify(PlatformInvoke)]
 static extern bool MAMapRectEqualToRect(MAMapRect rect1, MAMapRect rect2);
Esempio n. 25
0
 // BOOL MAMapRectIsNull (MAMapRect rect);
 //[DllImport("__Internal",EntryPoint = "MAMapRectIsNull")]
 //static extern bool _MAMapRectIsNull(MAMapRect rect);
 ////
 public static bool MAMapRectIsNull(MAMapRect rect)
 {
     return(double.IsInfinity(rect.origin.x) || double.IsInfinity(rect.origin.y));
 }
Esempio n. 26
0
 //[Verify(PlatformInvoke)]
 static extern bool MAMapRectIsEmpty(MAMapRect rect);
Esempio n. 27
0
 // BOOL MAMapRectIsEmpty (MAMapRect rect);
 //[DllImport("__Internal",EntryPoint = "MAMapRectIsEmpty")]
 //static extern bool _MAMapRectIsEmpty(MAMapRect rect);
 ////
 public static bool MAMapRectIsEmpty(MAMapRect rect)
 {
     return(MAMapRectIsNull(rect) || (rect.size.width == 0.0 && rect.size.height == 0.0));
 }
Esempio n. 28
0
 //[Verify(PlatformInvoke)]
 static extern MACoordinateRegion MACoordinateRegionForMapRect(MAMapRect rect);
Esempio n. 29
0
 public static MACoordinateRegion MACoordinateRegionForMapRect(MAMapRect rect)
 {
     return(_MACoordinateRegionForMapRect(rect));
 }