BoundingBox
public struct BoundingBox : Equatable, Hashable
The smallest rectangular area within which all the coordinates lie.
-
Creates a new instance of
BoundingBox
Declaration
Swift
public init(southWestCorner: CLLocationCoordinate2D, northEastCorner: CLLocationCoordinate2D)
Parameters
southWestCorner
A coordinate representing the southwest corner of the bounding box.
northEastCorner
A coordinate representing the northeast corner of the bounding box.
-
An equatable southwest corner coordinate.
Declaration
Swift
@EquatableWrapper public private(set) var southWestCorner: CLLocationCoordinate2D { get set }
-
An equatable northeast corner coordinate
Declaration
Swift
@EquatableWrapper public private(set) var northEastCorner: CLLocationCoordinate2D { get set }
-
Custom implementation because CLLocationCoordinate2D should not conform to Hashable
Declaration
Swift
public func hash(into hasher: inout Hasher)