BDBoundingBox
Objective-C
@interface BDBoundingBox
: BDGeometry <NSCopying, BDPValidatable, NSSecureCoding>
Swift
class BDBoundingBox : BDGeometry, NSCopying, BDPValidatable, NSSecureCoding
A rectangular coordinate region on the Earth’s surface, defined by two latitude / longitude corner BDPoint “points”.
-
Initializes a BDBoundingBox with individual values for the four bounding edges, in degrees.
Declaration
Objective-C
- (instancetype)initWithNorth:(BDLocationDegrees)north west:(BDLocationDegrees)west south:(BDLocationDegrees)south east:(BDLocationDegrees)east;Swift
init!(north: BDLocationDegrees, west: BDLocationDegrees, south: BDLocationDegrees, east: BDLocationDegrees) -
Initializes a BDBoundingBox using a MapKit coordinate region.
Declaration
Objective-C
- (instancetype)initWithCoordinateRegion:(MKCoordinateRegion)region;Swift
init!(coordinateRegion region: MKCoordinateRegion) -
@returns the equivalent MapKit coordinate region representation of this rectangular region.
Declaration
Objective-C
- (MKCoordinateRegion)coordinateRegion;Swift
func coordinateRegion() -> MKCoordinateRegion -
Declaration
Objective-C
- (void)setWest:(BDLocationDegrees)west;Swift
func setWest(_ west: BDLocationDegrees)Parameters
westthe longitudinal component of the South-West corner point of this rectangular region
-
@returns the longitudinal component of the South-West corner point of this rectangular region
-
Declaration
Objective-C
- (void)setNorth:(BDLocationDegrees)north;Swift
func setNorth(_ north: BDLocationDegrees)Parameters
norththe latitudinal component of the North-East corner point of this rectangular region
-
Returns the latitudinal component of the North-East corner point of this rectangular region
-
Declaration
Objective-C
- (void)setEast:(BDLocationDegrees)east;Swift
func setEast(_ east: BDLocationDegrees)Parameters
eastthe longitudinal component of the North-East corner point of this rectangular region
-
@returns the longitudinal component of the North-East corner point of this rectangular region
-
Sets the latitudinal component of the South-West corner point of this rectangular region
Declaration
Objective-C
- (void)setSouth:(BDLocationDegrees)south;Swift
func setSouth(_ south: BDLocationDegrees) -
@returns the latitudinal component of the South-West corner point of this rectangular region
-
@returns the absolute difference between the East and West longitudes, in degrees.
Declaration
Objective-C
- (BDLocationDegrees)longitudeSpan;Swift
func longitudeSpan() -> BDLocationDegrees -
@returns the absolute difference between the North and South latitudes, in degrees.
Declaration
Objective-C
- (BDLocationDegrees)latitudeSpan;Swift
func latitudeSpan() -> BDLocationDegrees -
@returns An array of the corner
BDPoint“points” of thisBDBoundingBox, ordered: North, East, South, West.Declaration
Objective-C
- (NSArray *)vertices;Swift
func vertices() -> [Any]!
View on GitHub
Install in Dash