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
geometryType
geometry type
hasZ
has z values
hasM
has 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
curves
curves
-
Add a curve
Parameters
curve
curve
-
Get the number of curves
Declaration
Objective-C
- (int)numCurves;
Swift
func numCurves() -> Int32
Return Value
curve count
-
Returns the Nth curve
Parameters
n
nth 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() -> Bool
Return Value
true if closed