public unsafe CLLocationCoordinate2D[] GetCoordinates(int first, int count) { var range = new NSRange (first, count); var target = new CLLocationCoordinate2D [count]; fixed (CLLocationCoordinate2D *firstE = &target [0]){ GetCoords ((IntPtr) firstE, range); } return target; }
public static unsafe MKPolygon FromCoordinates(CLLocationCoordinate2D [] coords, MKPolygon [] interiorPolygons) { if (coords == null) throw new ArgumentNullException ("coords"); if (coords.Length == 0) return _FromCoordinates (IntPtr.Zero, 0); fixed (CLLocationCoordinate2D *first = &coords [0]){ return _FromCoordinates ((IntPtr) first, coords.Length, interiorPolygons); } }
public static unsafe MKGeodesicPolyline FromCoordinates(CLLocationCoordinate2D [] coords) { if (coords == null) throw new ArgumentNullException ("coords"); if (coords.Length == 0) return PolylineWithCoordinates (IntPtr.Zero, 0); fixed (CLLocationCoordinate2D *first = &coords [0]){ return PolylineWithCoordinates ((IntPtr) first, coords.Length); } }
static extern bool CLLocationCoordinate2DIsValid(CLLocationCoordinate2D cord);
public static extern MKCoordinateRegion FromDistance(CLLocationCoordinate2D center, /* CLLocationDistance */ double latitudinalMeters, /* CLLocationDistance */ double longitudinalMeters);
// MKCoordinateRegionMake public MKCoordinateRegion(CLLocationCoordinate2D center, MKCoordinateSpan span) { this.Center = center; this.Span = span; }
public static extern MKMapPoint FromCoordinate(CLLocationCoordinate2D coordinate);