Beispiel #1
0
        public static unsafe MKPolygon FromPoints(MKMapPoint [] points, MKPolygon [] interiorPolygons)
        {
            if (points == null)
                throw new ArgumentNullException ("points");
            if (points.Length == 0)
                return _FromPoints (IntPtr.Zero, 0);

            fixed (MKMapPoint *first = &points [0]){
                return _FromPoints ((IntPtr) first, points.Length, interiorPolygons);
            }
        }
Beispiel #2
0
        public static unsafe MKGeodesicPolyline FromPoints(MKMapPoint [] points)
        {
            if (points == null)
                throw new ArgumentNullException ("points");
            if (points.Length == 0)
                return PolylineWithPoints (IntPtr.Zero, 0);

            fixed (MKMapPoint *first = &points [0]){
                return PolylineWithPoints ((IntPtr) first, points.Length);
            }
        }
Beispiel #3
0
 public extern static CLLocationCoordinate2D ToCoordinate(MKMapPoint mapPoint);
Beispiel #4
0
 static extern public /* CLLocationDistance */ double MetersBetweenMapPoints(MKMapPoint a, MKMapPoint b);
Beispiel #5
0
 public bool Contains(MKMapPoint point)
 {
     return(MKMapRectContainsPoint(this, point));
 }
Beispiel #6
0
 static extern bool MKMapRectContainsPoint(MKMapRect rect, MKMapPoint point);
Beispiel #7
0
 public MKMapRect(MKMapPoint origin, MKMapSize size)
 {
     Origin = origin;
     Size   = size;
 }
Beispiel #8
0
 public static extern double MetersBetweenMapPoints(MKMapPoint a, MKMapPoint b);
Beispiel #9
0
 static extern bool MKMapRectContainsPoint(MKMapRect rect, MKMapPoint point);
Beispiel #10
0
 public bool Contains(MKMapPoint point)
 {
     return MKMapRectContainsPoint (this, point);
 }
Beispiel #11
0
 public MKMapRect(MKMapPoint origin, MKMapSize size)
 {
     Origin = origin;
     Size = size;
 }
Beispiel #12
0
 public static extern CLLocationCoordinate2D ToCoordinate(MKMapPoint mapPoint);