SFTriangle

Objective-C

@interface SFTriangle : SFPolygon

Swift

class SFTriangle : SFPolygon

Triangle

  • Create

    Declaration

    Objective-C

    + (SFTriangle *)triangle;

    Return Value

    new triangle

  • Create

    Declaration

    Objective-C

    + (SFTriangle *)triangleWithHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;

    Parameters

    hasZ

    has z values

    hasM

    has m values

    Return Value

    new triangle

  • Create

    Declaration

    Objective-C

    + (SFTriangle *)triangleWithRings:(NSMutableArray<SFLineString *> *)rings;

    Parameters

    rings

    list of rings

    Return Value

    new triangle

  • Create

    Declaration

    Objective-C

    + (SFTriangle *)triangleWithRing:(SFLineString *)ring;

    Parameters

    ring

    ring

    Return Value

    new triangle

  • Create

    Declaration

    Objective-C

    + (SFTriangle *)triangleWithTriangle:(SFTriangle *)triangle;

    Parameters

    triangle

    triangle

    Return Value

    new triangle

  • Initialize

    Declaration

    Objective-C

    - (instancetype)init;

    Swift

    init!()

    Return Value

    new triangle

  • 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 triangle

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithRings:(NSMutableArray<SFLineString *> *)rings;

    Swift

    init!(rings: NSMutableArray!)

    Parameters

    rings

    list of rings

    Return Value

    new triangle

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithRing:(SFLineString *)ring;

    Swift

    init!(ring: SFLineString!)

    Parameters

    ring

    ring

    Return Value

    new triangle

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithTriangle:(SFTriangle *)triangle;

    Swift

    init!(triangle: SFTriangle!)

    Parameters

    triangle

    triangle

    Return Value

    new triangle