NTPolygonGeometry
@interface NTPolygonGeometry : NTGeometry
Polygon geometry defined by an outer ring and optional multiple inner rings (holes).
-
Constructs a PolygonGeometry objects from an outer ring.
Declaration
Objective-C
- (id)initWithPoses:(NTMapPosVector *)poses;Parameters
posesThe list of map positions defining the outer ring.
-
Constructs a PolygonGeometry objects from an outer ring and list of inner rings (holes).
Declaration
Objective-C
- (id)initWithPoses:(NTMapPosVector *)poses holes:(NTMapPosVectorVector *)holes;Parameters
posesThe list of map positions defining the outer ring.
holesThe list of map position lists defining the inner rings.
-
Constructs a PolygonGeometry objects from a list of rings. It is assumed the the first ring is outer ring and all other rings are inner rings.
Declaration
Objective-C
- (id)initWithRings:(NTMapPosVectorVector *)rings;Parameters
ringsThe list of map position lists defining the rings
-
Undocumented
Declaration
Objective-C
- (NTMapPos *)getCenterPos; -
Returns the list of map positions defining the outer ring of the polygon.
Declaration
Objective-C
- (NTMapPosVector *)getPoses;Return Value
The list of map positions defining the outer ring of the polygon.
-
Returns the list of map position lists defining the inner rings of the polygon (holes).
Declaration
Objective-C
- (NTMapPosVectorVector *)getHoles;Return Value
The list of map position lists defining the inner rings of the polygon (holes).
-
Returns the list of map position lists defining the rings of the polygon.
Declaration
Objective-C
- (NTMapPosVectorVector *)getRings;Return Value
The list of map position lists defining the rings of the polygon.
-
Undocumented
Declaration
Objective-C
-(void)dealloc;
View on GitHub
NTPolygonGeometry Class Reference