| 
    se2ez
    
   | 
 
Operations on geometry. More...
Functions | |
| bool | isConvex (const Geometry &geometry) | 
| Checks if a polygon is convex.  More... | |
| bool | isSimple (const Geometry &geometry) | 
| Checks if a polygon is simple, that is, it has no holes.  More... | |
| void | makeClockwise (Geometry &geometry) | 
| If not clockwise, reorders polygon vertices to be in clockwise orientation.  More... | |
| void | makeCounterClockwise (Geometry &geometry) | 
| If not counterclockwise, reorders polygon vertices to be in counterclockwise orientation.  More... | |
| double | area (const Geometry &geometry) | 
| Compute the area of a polygon.  More... | |
| std::vector< GeometryPtr > | convexifyApproximate (const GeometryPtr &geometry) | 
| Performs an approximate convex decomposition on the geometry.  More... | |
| std::vector< GeometryPtr > | convexifyOptimal (const GeometryPtr &geometry) | 
| Performs an optimal convex decomposition on the geometry.  More... | |
| std::vector< GeometryPtr > | shatter (const GeometryPtr &geometry) | 
| "Shatters" a convex polygon into a fan of triangles using the first point as the root for all triangles.  More... | |
Operations on geometry.
| double se2ez::geo::area | ( | const Geometry & | geometry | ) | 
Compute the area of a polygon.
| [in] | geometry | Geometry to compute area for. | 
Definition at line 106 of file polygon.cpp.
| std::vector< GeometryPtr > se2ez::geo::convexifyApproximate | ( | const GeometryPtr & | geometry | ) | 
Performs an approximate convex decomposition on the geometry.
| [in] | geometry | Geometry to decompose. | 
Definition at line 113 of file polygon.cpp.
| std::vector< GeometryPtr > se2ez::geo::convexifyOptimal | ( | const GeometryPtr & | geometry | ) | 
Performs an optimal convex decomposition on the geometry.
| [in] | geometry | Geometry to decompose. | 
Definition at line 141 of file polygon.cpp.
| bool se2ez::geo::isConvex | ( | const Geometry & | geometry | ) | 
Checks if a polygon is convex.
| [in] | geometry | Geometry to check (must be a polygon) | 
Definition at line 68 of file polygon.cpp.
| bool se2ez::geo::isSimple | ( | const Geometry & | geometry | ) | 
Checks if a polygon is simple, that is, it has no holes.
| [in] | geometry | Geometry to check (must be a polygon) | 
Definition at line 75 of file polygon.cpp.
| void se2ez::geo::makeClockwise | ( | Geometry & | geometry | ) | 
If not clockwise, reorders polygon vertices to be in clockwise orientation.
| [in,out] | geometry | Geometry to reorder. | 
Definition at line 82 of file polygon.cpp.
| void se2ez::geo::makeCounterClockwise | ( | Geometry & | geometry | ) | 
If not counterclockwise, reorders polygon vertices to be in counterclockwise orientation.
| [in,out] | geometry | Geometry to reorder. | 
Definition at line 94 of file polygon.cpp.
| std::vector< GeometryPtr > se2ez::geo::shatter | ( | const GeometryPtr & | geometry | ) | 
"Shatters" a convex polygon into a fan of triangles using the first point as the root for all triangles.
| [in] | geometry | Geometry to shatter. | 
Definition at line 167 of file polygon.cpp.