SFMultiCurve
Objective-C
@interface SFMultiCurve : SFGeometryCollection
Swift
class SFMultiCurve : SFGeometryCollection
A restricted form of GeometryCollection where each Geometry in the collection must be of type Curve.
-
Initialize
Declaration
Objective-C
- (instancetype)initWithType:(enum SFGeometryType)geometryType andHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;Swift
init!(type geometryType: SFGeometryType, andHasZ hasZ: Bool, andHasM hasM: Bool)Parameters
geometryTypegeometry type
hasZhas z values
hasMhas m values
Return Value
new multi curve
-
Get the curves
Declaration
Objective-C
- (NSMutableArray<SFCurve *> *)curves;Swift
func curves() -> NSMutableArray!Return Value
curves
-
Set the curves
Declaration
Objective-C
- (void)setCurves:(NSMutableArray<SFCurve *> *)curves;Swift
func setCurves(_ curves: NSMutableArray!)Parameters
curvescurves
-
Add a curve
Parameters
curvecurve
-
Get the number of curves
Declaration
Objective-C
- (int)numCurves;Swift
func numCurves() -> Int32Return Value
curve count
-
Returns the Nth curve
Parameters
nnth curve to return
Return Value
curve
-
Determine if this Multi Curve is closed for each Curve (start point = end point)
Declaration
Objective-C
- (BOOL)isClosed;Swift
func isClosed() -> BoolReturn Value
true if closed
View on GitHub
SFMultiCurve Class Reference