Test fit to bounds; added MGLCoordinateBounds functions

Added a bunch of functions to work with MGLCoordinateBounds in a separate header analogous to MKGeometry.h. Added resolution-independent tests for common fit to bounds scenarios.
This commit is contained in:
Minh Nguyễn
2015-06-25 11:58:23 -07:00
parent 68e404c522
commit 1d11624efd
9 changed files with 131 additions and 16 deletions

View File

@@ -0,0 +1,3 @@
#import "MGLGeometry.h"
const MGLCoordinateSpan MGLCoordinateSpanZero = {0, 0};

View File

@@ -1,5 +1,5 @@
#import "MGLMultiPoint.h"
#import "MGLTypes.h"
#import "MGLGeometry.h"
#import <mbgl/util/geo.hpp>