|  | |
| Polygon | |
 Inheritance Hierarchy
Inheritance Hierarchy Syntax
Syntaxpublic class PolygonAnalyzer
The PolygonAnalyzer type exposes the following members.
 Constructors
Constructors| Name | Description | |
|---|---|---|
|  | PolygonAnalyzer(Vector2, Boolean) | Constructor | 
|  | PolygonAnalyzer(Vector2, Boolean, Boolean) | Constructor | 
|  | PolygonAnalyzer(Vector2, Int32, Boolean) | Constructor | 
 Properties
Properties| Name | Description | |
|---|---|---|
|  | BoundingBoxMax | Gets maximum position in the bounding box | 
|  | BoundingBoxMin | Gets minimum position in the 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. When the polygon is oriented in anti-clock-wise direction, then PolygonArea is positive. When the polygon is oriented in clock-wise direction, then PolygonArea is negative. | 
 Methods
Methods| 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. | 
 See Also
See Also