BoundingBox
struct BoundingBox : Equatable
Bounding Box that defines an area
-
top right point
Declaration
Swift
public let point1: CLLocationCoordinate2D
-
bottom left point
Declaration
Swift
public let point2: CLLocationCoordinate2D
-
center point
Declaration
Swift
public let center: CLLocationCoordinate2D
-
Undocumented
Declaration
Swift
public var diameter: CLLocationDistance { get }
-
Creates a bounding box by calculating the edge points for the given center coordinate and radius
Declaration
Swift
public init(center: CLLocationCoordinate2D, radius: Double)
Parameters
center
center coordinate
radius
radius in meters
-
Undocumented
Declaration
Swift
public func contains(coord: CLLocationCoordinate2D) -> Bool
-
Declaration
Swift
public static func == (lhs: BoundingBox, rhs: BoundingBox) -> Bool