NMSCoordinateBounds.h
1 //
2 // NMSCoordinateBounds.h
3 // NavionicsMobileSDK
4 //
5 // Copyright © 2016 Navionics. All rights reserved.
6 //
7 
8 #import <Foundation/Foundation.h>
9 #import <CoreLocation/CoreLocation.h>
10 
11 @class NMSPath;
12 
14 @interface NMSCoordinateBounds : NSObject
15 
22 - (id)initWithCoordinate:(CLLocationCoordinate2D)firstCoordinate coordinate:(CLLocationCoordinate2D)secondCoordinate;
23 
29 - (id)initWithPath:(NMSPath*)path;
30 
36 - (NMSCoordinateBounds *)includingCoordinate:(CLLocationCoordinate2D)coordinate;
37 
43 - (NMSCoordinateBounds *)includingBounds:(NMSCoordinateBounds*)bounds;
44 
50 - (BOOL)containsCoordinate:(CLLocationCoordinate2D)coordinate;
51 
57 - (BOOL)intersectsBounds:(NMSCoordinateBounds*)bounds;
58 
64 - (BOOL)isEqualToBounds:(NMSCoordinateBounds*)bounds;
65 
67 @property(nonatomic,readonly)CLLocationCoordinate2D northEast;
68 
70 @property(nonatomic,readonly)CLLocationCoordinate2D southWest;
71 
73 @property(nonatomic,readonly)BOOL valid;
74 
75 @end
CLLocationCoordinate2D northEast
The North-East corner of these bounds.
Array of CLLocationCoordinate2D.
Definition: NMSPath.h:12
CLLocationCoordinate2D southWest
The South-West corner of these bounds.
BOOL valid
Returns NO if this bounds does not contain any points.
Rectangular bounding box on the Earth&#39;s surface.