I'd like to know whether I can create a rectangle using a top-left and bottom-right CLLocationCoordinate2D, and afterwards check whether a coordinate is part of this rectangle by checking (topLeftCoordinate.latitude < coordinate.latitude && bottomRightCoordinate.latitude > coordinate.latitude) && (topLeftCoordinate.longitude < coordinate.longitude && bottomRightCoordinate.longitude > coordinate.longitude).
I thought a coordinate would represent a point on a sphere, and then this wouldn't work. But I get confused due to the 2D at the end of CLLocationCoordinate2D. Can someone clarify this?
Thanks :)