SFLine
Objective-C
@interface SFLine : SFLineString
Swift
class SFLine : SFLineString
A LineString with exactly 2 Points.
-
Create
Declaration
Objective-C
+ (SFLine *)line;
Return Value
new line
-
Create
Declaration
Objective-C
+ (SFLine *)lineWithHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Parameters
hasZ
has z values
hasM
has m values
Return Value
new line
-
Create
Declaration
Objective-C
+ (SFLine *)lineWithPoints:(NSMutableArray<SFPoint *> *)points;
Parameters
points
list of points
Return Value
new line
-
Create
Parameters
point1
first point
point2
second point
Return Value
new line
-
Create
Declaration
Objective-C
+ (SFLine *)lineWithLine:(SFLine *)line;
Parameters
line
line
Return Value
new line
-
Initialize
Declaration
Objective-C
- (instancetype)init;
Swift
init!()
Return Value
new line
-
Initialize
Declaration
Objective-C
- (instancetype)initWithHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Swift
init!(hasZ: Bool, andHasM hasM: Bool)
Parameters
hasZ
has z values
hasM
has m values
Return Value
new line
-
Initialize
Declaration
Objective-C
- (instancetype)initWithPoints:(NSMutableArray<SFPoint *> *)points;
Swift
init!(points: NSMutableArray!)
Parameters
points
list of points
Return Value
new line
-
Initialize
Declaration
Parameters
point1
first point
point2
second point
Return Value
new line
-
Initialize
Declaration
Objective-C
- (instancetype)initWithLine:(SFLine *)line;
Swift
init!(line: SFLine!)
Parameters
line
line
Return Value
new line