Polygon | |
public class PolygonAnalyzer
The PolygonAnalyzer type exposes the following members.
| Name | Description | |
|---|---|---|
| PolygonAnalyzer(IListPoint, Boolean) | Constructor | |
| PolygonAnalyzer(IListPoint, Boolean, Boolean) | Constructor | |
| PolygonAnalyzer(IListPoint, IListInt32, Boolean) | Constructor |
| Name | Description | |
|---|---|---|
| BoundingBox | Gets polygon bounding box | |
| FirstVertex | First PolygonVertex in a double linked list of positions. | |
| IsClockwise | Gets true is polygon positions are oriented in a clockwise direction. The value of this property is also determined by the Y axis direction that is up by default (this is set by IsYAxisUp). | |
| IsClosed | Gets true if polygons is closed | |
| IsPolygonConvex | Gets true if polygon is convex | |
| IsYAxisUp | Gets or sets a Boolean that specifies if Y axis is pointing up (true by default). This affects the value of IsClockwise property. | |
| OriginalPoints | Gets a list of positions | |
| PointsCount | Gets points count | |
| PolygonArea | Gets polygon area |
| Name | Description | |
|---|---|---|
| Analyze | Analyzes this polygon again and recalculates its properties. | |
| CreateReversedPolygonAnalyzer | Returns a PolygonAnalyzer that is created by reversing the order of positions in this PolygonAnalyzer | |
| Dump | Dumps the text that describes the individual vertices in this PolygonAnalyzer into the Visual Studio Output window | |
| GetDumpString | Gets a string the describes the individual vertices in this PolygonAnalyzer. | |
| GetEnumerator | Gets an enumerator that can be used to iterate through all PolygonVertex items in the polygon defined by this PolygonAnalyzer. | |
| IsPointInsidePolygon | Returns true when the specified point is inside the polygon defined by this PolygonAnalyzer. | |
| OptimizeVertices | OptimizeVertices removes duplicate vertices (that follow one another) and remove vertices that lie on the same line. | |
| RemoveVertex | Removes the specified vertex from this polygon. |