Represents a bounding box that defines a rectangular area in a geographic coordinate system. More...
#import <SYPositioning.h>
Instance Methods | |
(nonnull instancetype) | - initWithTopLeft:bottomRight: |
Initializes a SYGeoBoundingBox instance with specified top-left and bottom-right SYGeoCoordinates. More... | |
(nullable SYGeoBoundingBox *) | - intersectionWithGeoBoundingBox: |
(nullable SYGeoBoundingBox *) | - unionWithGeoBoundingBox: |
(nullable SYGeoBoundingBox *) | - scale: |
(nullable SYGeoBoundingBox *) | - offsetWithGeoCoordinate: |
(BOOL) | - containsGeoCoordinate: |
(BOOL) | - containsGeoBoundingBox: |
Properties | |
SYGeoCoordinate * | topLeft |
The SYGeoCoordinates representing the top-left corner of the SYGeoBoundingBox. More... | |
SYGeoCoordinate * | bottomRight |
The SYGeoCoordinates representing the bottom-right corner of the SYGeoBoundingBox. More... | |
Represents a bounding box that defines a rectangular area in a geographic coordinate system.
- (nonnull instancetype) initWithTopLeft: | (nonnull SYGeoCoordinate *) | topLeft | |
bottomRight: | (nonnull SYGeoCoordinate *) | bottomRight | |
Initializes a SYGeoBoundingBox instance with specified top-left and bottom-right SYGeoCoordinates.
- (nullable SYGeoBoundingBox*) intersectionWithGeoBoundingBox: | (nonnull SYGeoBoundingBox *) | boundingBox |
Computes intersection of this SYGeoBoundingBox and the specified SYGeoBoundingBox. Returns nil if intersection is empty.
- (nullable SYGeoBoundingBox*) unionWithGeoBoundingBox: | (nonnull SYGeoBoundingBox *) | boundingBox |
Computes union of this SYGeoBoundingBox and the specified SYGeoBoundingBox.
- (nullable SYGeoBoundingBox*) scale: | (CGFloat) | scale |
Computes scale of this SYGeoBoundingBox with the specified scale.
- (nullable SYGeoBoundingBox*) offsetWithGeoCoordinate: | (nonnull SYGeoCoordinate *) | coordinate |
Computes offset of this SYGeoBoundingBox with the specified SYGeoCoordinate.
- (BOOL) containsGeoCoordinate: | (nonnull SYGeoCoordinate *) | coordinate |
Determines whether the specified SYGeoCoordinate is contained within this SYGeoBoundingBox.
- (BOOL) containsGeoBoundingBox: | (nonnull SYGeoBoundingBox *) | boundingBox |
Determines whether the specified SYGeoBoundingBox is covered entirely by this SYGeoBoundingBox.
|
readnonatomicassign |
The SYGeoCoordinates representing the top-left corner of the SYGeoBoundingBox.
|
readnonatomicassign |
The SYGeoCoordinates representing the bottom-right corner of the SYGeoBoundingBox.