SFMultiPoint

Objective-C

@interface SFMultiPoint : SFGeometryCollection

Swift

class SFMultiPoint : SFGeometryCollection

A restricted form of GeometryCollection where each Geometry in the collection must be of type Point.

  • Create

    Declaration

    Objective-C

    + (SFMultiPoint *)multiPoint;

    Return Value

    new multi point

  • Create

    Declaration

    Objective-C

    + (SFMultiPoint *)multiPointWithHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;

    Parameters

    hasZ

    has z values

    hasM

    has m values

    Return Value

    new multi point

  • Create

    Declaration

    Objective-C

    + (SFMultiPoint *)multiPointWithPoints:(NSMutableArray<SFPoint *> *)points;

    Parameters

    points

    list of points

    Return Value

    new multi point

  • Create

    Declaration

    Objective-C

    + (SFMultiPoint *)multiPointWithPoint:(SFPoint *)point;

    Parameters

    point

    point

    Return Value

    new multi point

  • Create

    Declaration

    Objective-C

    + (SFMultiPoint *)multiPointWithMultiPoint:(SFMultiPoint *)multiPoint;

    Parameters

    multiPoint

    multi point

    Return Value

    new multi point

  • Initialize

    Declaration

    Objective-C

    - (instancetype)init;

    Swift

    init!()

    Return Value

    new multi point

  • 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 multi point

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithPoints:(NSMutableArray<SFPoint *> *)points;

    Swift

    init!(points: NSMutableArray!)

    Parameters

    points

    list of points

    Return Value

    new multi point

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithPoint:(SFPoint *)point;

    Swift

    init!(point: SFPoint!)

    Parameters

    point

    point

    Return Value

    new multi point

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithMultiPoint:(SFMultiPoint *)multiPoint;

    Swift

    init!(multiPoint: SFMultiPoint!)

    Parameters

    multiPoint

    multi point

    Return Value

    new multi point

  • Get the points

    Declaration

    Objective-C

    - (NSMutableArray<SFPoint *> *)points;

    Swift

    func points() -> NSMutableArray!

    Return Value

    points

  • Set the points

    Declaration

    Objective-C

    - (void)setPoints:(NSMutableArray<SFPoint *> *)points;

    Swift

    func setPoints(_ points: NSMutableArray!)

    Parameters

    points

    points

  • Add a point

    Declaration

    Objective-C

    - (void)addPoint:(SFPoint *)point;

    Swift

    func addPoint(_ point: SFPoint!)

    Parameters

    point

    point

  • Add points

    Declaration

    Objective-C

    - (void)addPoints:(NSArray<SFPoint *> *)points;

    Swift

    func addPoints(_ points: [SFPoint]!)

    Parameters

    points

    points

  • Get the number of points

    Declaration

    Objective-C

    - (int)numPoints;

    Swift

    func numPoints() -> Int32

    Return Value

    point count

  • Returns the Nth point

    Declaration

    Objective-C

    - (SFPoint *)pointAtIndex:(int)n;

    Swift

    func point(at n: Int32) -> SFPoint!

    Parameters

    n

    nth point to return

    Return Value

    point