CircleGeometry

public struct CircleGeometry : Hashable, Equatable

Circle geometry for searchArea.

  • Creates a new CircleGeometry.

    Declaration

    Swift

    public init(coordinate: CLLocationCoordinate2D, radius: Measurement<UnitLength>)

    Parameters

    coordinate

    a coordinate that defines the circle center

    radius

    radius of the circle

  • Coordinate of the circle center.

    Declaration

    Swift

    public let coordinate: CLLocationCoordinate2D
  • Radius of the circle.

    Declaration

    Swift

    public let radius: Measurement<UnitLength>
  • Equatable implementation.

    Declaration

    Swift

    public static func == (lhs: CircleGeometry, rhs: CircleGeometry) -> Bool
  • Hashable implementation.

    Declaration

    Swift

    public func hash(into hasher: inout Hasher)