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 let padding: Double
-
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, padding: Double = 0)
Parameters
center
center coordinate
radius
radius in meters
-
Undocumented
Declaration
Swift
public func contains(coord: CLLocationCoordinate2D) -> Bool
-
Undocumented
Declaration
Swift
public static func incrementalPadding(maxIncrements: Int, currentIncrement: Int, maxPadding: Double = 0.85, minPading: Double = 0) -> Double
-
Declaration
Swift
public static func == (lhs: BoundingBox, rhs: BoundingBox) -> Bool