SFLineString
A Curve that connects two or more points in space.
-
Array of points
Declaration
Objective-C
@property (nonatomic, strong) NSMutableArray<SFPoint *> *points;Swift
var points: NSMutableArray! { get set } -
Create
Declaration
Objective-C
+ (SFLineString *)lineString;Return Value
new line string
-
Create
Declaration
Objective-C
+ (SFLineString *)lineStringWithHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;Parameters
hasZhas z values
hasMhas m values
Return Value
new line string
-
Create
Declaration
Objective-C
+ (SFLineString *)lineStringWithPoints:(NSMutableArray<SFPoint *> *)points;Parameters
pointslist of points
Return Value
new line string
-
Create
Declaration
Objective-C
+ (SFLineString *)lineStringWithLineString:(SFLineString *)lineString;Parameters
lineStringline string
Return Value
new line string
-
Initialize
Declaration
Objective-C
- (instancetype)init;Swift
init!()Return Value
new line string
-
Initialize
Declaration
Objective-C
- (instancetype)initWithHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;Swift
init!(hasZ: Bool, andHasM hasM: Bool)Parameters
hasZhas z values
hasMhas m values
Return Value
new line string
-
Initialize
Declaration
Objective-C
- (instancetype)initWithPoints:(NSMutableArray<SFPoint *> *)points;Swift
init!(points: NSMutableArray!)Parameters
pointslist of points
Return Value
new line string
-
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 line string
-
Initialize
Declaration
Objective-C
- (instancetype)initWithLineString:(SFLineString *)lineString;Swift
init!(lineString: SFLineString!)Parameters
lineStringline string
Return Value
new line string
-
Add a point
Parameters
pointpoint
-
Get the number of points
Declaration
Objective-C
- (int)numPoints;Swift
func numPoints() -> Int32Return Value
point count
-
Returns the Nth point
Parameters
nnth point to return
Return Value
point
View on GitHub
SFLineString Class Reference