SFDegreesCentroid
Objective-C
@interface SFDegreesCentroid : NSObject
Swift
class SFDegreesCentroid : NSObject
Centroid calculations for geometries in degrees
-
Get the degree geometry centroid
Declaration
Objective-C
+ (SFPoint *)centroidOfGeometry:(SFGeometry *)geometry;
Swift
class func centroid(of geometry: SFGeometry!) -> SFPoint!
Parameters
geometry
geometry
Return Value
centroid point
-
Initialize
Declaration
Objective-C
- (instancetype)initWithGeometry:(SFGeometry *)geometry;
Swift
init!(geometry: SFGeometry!)
Parameters
geometry
geometry
Return Value
new instance
-
Get the centroid point
Return Value
centroid point