BDPolygonal
@interface BDPolygonal : BDGeometry
@brief Base-class for @ref BDGeometry “geometries” defined by an ordered series of @ref BDPoint “points”.
@ref BDPolygonal is an abstract type and cannot be instantiated directly.
Instead, instantiate one of its concrete sub-classes.
See
details in @ref BDPolygonSee
details in @ref BDLineString-
@returns The number of vertices (@ref BDPoint “point"s) that define this polygonal geometry.
Declaration
Objective-C
- (NSUInteger)vertexCount;
-
Convenience method to add a new vertex to this BDPolygons vertices array.
Declaration
Objective-C
- (void)addVertex:(BDPoint *)vertex;
-
An ordered series of @ref BDPoint “point” vertices which, when joined by straight-line segments, describe this polygonal geometry.
Declaration
Objective-C
@property (nonatomic) NSMutableArray *vertices;
-
@returns YES if this geometry is closed and has an area. NO if the geometry is open-ended and has no area.
Declaration
Objective-C
- (BOOL)isClosed;