BDCircle
Objective-C
@interface BDCircle : BDGeometry <NSSecureCoding>
Swift
class BDCircle : BDGeometry, NSSecureCoding
A circular region on the Earth’s surface, defined by a center BDPoint
“point” and a radius, in meters.
-
- Radius in meters.
Declaration
Objective-C
@property (nonatomic) BDLocationDistance radius;
Swift
var radius: BDLocationDistance { get set }
-
Convenience init method with a center point
BDPoint
and a radiusDeclaration
Objective-C
- (instancetype)initWithCenter:(BDPoint *)center radius:(BDLocationDistance)radius;
Swift
init!(center: BDPoint!, radius: BDLocationDistance)
-
Convenience class method to init a circle with a center point
BDPoint
and a radiusDeclaration
Objective-C
+ (BDCircle *)circleWithCenter:(BDPoint *)center radius:(BDLocationDistance)radius;
-
Compare the current circle with the passing in
circle
.Declaration
Objective-C
- (BOOL)isEqualToCircle:(BDCircle *)circle;
Swift
func isEqual(to circle: BDCircle!) -> Bool