static extern bool MAPolylineHitTest(MAMapPoint linePoints, nuint count, MAMapPoint tappedPoint, nfloat lineWidth);
 static extern double MAGetDirectionFromPoints(MAMapPoint fromPoint, MAMapPoint toPoint);
 static extern double MAGetDistanceFromPointToLine(MAMapPoint point, MAMapPoint lineBegin, MAMapPoint lineEnd);
 // BOOL MAMapPointEqualToPoint (MAMapPoint point1, MAMapPoint point2);
 //[DllImport("__Internal")]
 //static extern bool MAMapPointEqualToPoint(MAMapPoint point1, MAMapPoint point2);
 ////
 public static bool MAMapPointEqualToPoint(MAMapPoint point1, MAMapPoint point2)
 {
     return(point1.x == point2.x && point1.y == point2.y);
 }
 // NSString * MAStringFromMapPoint (MAMapPoint point);
 //[DllImport("__Internal")]
 //static extern NSString MAStringFromMapPoint(MAMapPoint point);
 ////
 public static string MAStringFromMapPoint(MAMapPoint point)
 {
     return(string.Format(@"{%.1f, %.1f}", point.x, point.y));
 }
 static extern bool MAPolygonContainsPoint(MAMapPoint point, MAMapPoint polygon, nuint count);
 static extern MAMapPoint MAGetNearestMapPointFromLine(MAMapPoint lineStart, MAMapPoint lineEnd, MAMapPoint point);
 static extern MAMapPoint MAGetNearestMapPointFromPolyline(MAMapPoint point, MAMapPoint polyline, nuint count);
 static extern bool MACircleContainsPoint(MAMapPoint point, MAMapPoint center, double radius);
Beispiel #10
0
 static extern bool MAMapRectContainsPoint(MAMapRect rect, MAMapPoint point);
Beispiel #11
0
 static extern double MAMetersBetweenMapPoints(MAMapPoint a, MAMapPoint b);
Beispiel #12
0
 static extern CLLocationCoordinate2D MACoordinateForMapPoint(MAMapPoint mapPoint);