CircleGeometry

public struct CircleGeometry : Equatable

Circle geometry for searchArea.

Lifecycle

  • 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

Public

  • Coordinate of the circle center.

    Declaration

    Swift

    public let coordinate: CLLocationCoordinate2D
  • Radius of the circle.

    Declaration

    Swift

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

    Declaration

    Swift

    public static func == (lhs: CircleGeometry, rhs: CircleGeometry) -> Bool