3 #ifndef SE2EZ_CORE_CGAL_POLYGON_ 4 #define SE2EZ_CORE_CGAL_POLYGON_ 7 #include <Eigen/Geometry>
void makeClockwise(Geometry &geometry)
If not clockwise, reorders polygon vertices to be in clockwise orientation.
double area(const Geometry &geometry)
Compute the area of a polygon.
bool isSimple(const Geometry &geometry)
Checks if a polygon is simple, that is, it has no holes.
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 triangl...
A shared pointer wrapper for se2ez::Geometry.
std::vector< GeometryPtr > convexifyApproximate(const GeometryPtr &geometry)
Performs an approximate convex decomposition on the geometry.
void makeCounterClockwise(Geometry &geometry)
If not counterclockwise, reorders polygon vertices to be in counterclockwise orientation.
std::vector< GeometryPtr > convexifyOptimal(const GeometryPtr &geometry)
Performs an optimal convex decomposition on the geometry.
bool isConvex(const Geometry &geometry)
Checks if a polygon is convex.
#define SE2EZ_CLASS_FORWARD(C)