Created
March 6, 2015 02:21
-
-
Save nolili/c530ebd1a496180ea305 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (BOOL)isEqualCoordinate1:(CLLocationCoordinate2D)coordinate1 coordinate2:(CLLocationCoordinate2D)coordinate2{ | |
return (coordinate1.latitude == coordinate2.latitude && coordinate1.longitude == coordinate2.longitude); | |
} | |
- (BOOL)isEqualCamera1:(MKMapCamera *)camera1 camera2:(MKMapCamera *)camera2 | |
{ | |
if (!camera1){ | |
return NO; | |
} | |
if (!camera2){ | |
return NO; | |
} | |
return ([self isEqualCoordinate1:camera1.centerCoordinate coordinate2:camera2.centerCoordinate] && | |
camera1.heading == camera2.heading && | |
camera1.altitude == camera2.altitude && | |
camera1.pitch == camera2.pitch); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment