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

    Declaration

    Objective-C

    + (SFLine *)lineWithPoint1:(SFPoint *)point1 andPoint2:(SFPoint *)point2;

    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

    Objective-C

    - (instancetype)initWithPoint1:(SFPoint *)point1 andPoint2:(SFPoint *)point2;

    Swift

    init!(point1: SFPoint!, andPoint2 point2: SFPoint!)

    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