// 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); }
// 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)); }
//[Verify(PlatformInvoke)] static extern MAMapRect MAMapRectInset(MAMapRect rect, double dx, double dy);
//[Verify(PlatformInvoke)] static extern MAMapRect MAMapRectUnion(MAMapRect rect1, MAMapRect rect2);
//[Verify(PlatformInvoke)] static extern NSString MAStringFromMapRect(MAMapRect rect);
public static MAMapRect MAMapRectInset(MAMapRect rect, double dx, double dy) { return(_MAMapRectInset(rect, dx, dy)); }
//[Verify(PlatformInvoke)] static extern double MAMapRectGetMaxY(MAMapRect rect);
public static bool MAMapRectContainsPoint(MAMapRect rect, MAMapPoint point) { return(_MAMapRectContainsPoint(rect, point)); }
// double MAMapRectGetWidth (MAMapRect rect); //[DllImport("__Internal",EntryPoint = "MAMapRectGetWidth")] //static extern double _MAMapRectGetWidth(MAMapRect rect); //// public static double MAMapRectGetWidth(MAMapRect rect) { return(rect.size.width); }
//[Verify(PlatformInvoke)] static extern bool MAMapRectContainsRect(MAMapRect rect1, MAMapRect rect2);
// 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); }
// 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); }
// double MAMapRectGetMinY (MAMapRect rect); //[DllImport("__Internal",EntryPoint = "MAMapRectGetMinY")] //static extern double _MAMapRectGetMinY(MAMapRect rect); //// public static double MAMapRectGetMinY(MAMapRect rect) { return(rect.origin.y); }
public static bool MAMapRectContainsRect(MAMapRect rect1, MAMapRect rect2) { return(_MAMapRectContainsRect(rect1, rect2)); }
public static bool MAMapRectIntersectsRect(MAMapRect rect1, MAMapRect rect2) { return(_MAMapRectIntersectsRect(rect1, rect2)); }
//[Verify(PlatformInvoke)] static extern bool MAMapRectContainsPoint(MAMapRect rect, MAMapPoint point);
// double MAMapRectGetHeight (MAMapRect rect); //[DllImport("__Internal",EntryPoint = "MAMapRectGetHeight")] //static extern double _MAMapRectGetHeight(MAMapRect rect); //// public static double MAMapRectGetHeight(MAMapRect rect) { return(rect.size.height); }
//[Verify(PlatformInvoke)] static extern bool MAMapRectIntersectsRect(MAMapRect rect1, MAMapRect rect2);
//[Verify(PlatformInvoke)] static extern double MAMapRectGetHeight(MAMapRect rect);
//[Verify(PlatformInvoke)] static extern double MAMapRectGetMidX(MAMapRect rect);
//[Verify(PlatformInvoke)] static extern bool MAMapRectIsNull(MAMapRect rect);
//[Verify(PlatformInvoke)] static extern double MAMapRectGetWidth(MAMapRect rect);
public static MAMapRect MAMapRectUnion(MAMapRect rect1, MAMapRect rect2) { return(_MAMapRectUnion(rect1, rect2)); }
//[Verify(PlatformInvoke)] static extern bool MAMapRectEqualToRect(MAMapRect rect1, MAMapRect rect2);
// 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)); }
//[Verify(PlatformInvoke)] static extern bool MAMapRectIsEmpty(MAMapRect rect);
// 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)); }
//[Verify(PlatformInvoke)] static extern MACoordinateRegion MACoordinateRegionForMapRect(MAMapRect rect);
public static MACoordinateRegion MACoordinateRegionForMapRect(MAMapRect rect) { return(_MACoordinateRegionForMapRect(rect)); }