se2ez
polygon.h File Reference
#include <Eigen/Core>
#include <Eigen/Geometry>
#include <se2ez/core/class_forward.h>
#include <se2ez/core/math.h>

Go to the source code of this file.

Namespaces

 se2ez
 Main namespace.
 
 se2ez::geo
 Operations on geometry.
 

Functions

bool se2ez::geo::isConvex (const Geometry &geometry)
 Checks if a polygon is convex. More...
 
bool se2ez::geo::isSimple (const Geometry &geometry)
 Checks if a polygon is simple, that is, it has no holes. More...
 
void se2ez::geo::makeClockwise (Geometry &geometry)
 If not clockwise, reorders polygon vertices to be in clockwise orientation. More...
 
void se2ez::geo::makeCounterClockwise (Geometry &geometry)
 If not counterclockwise, reorders polygon vertices to be in counterclockwise orientation. More...
 
double se2ez::geo::area (const Geometry &geometry)
 Compute the area of a polygon. More...
 
std::vector< GeometryPtrse2ez::geo::convexifyApproximate (const GeometryPtr &geometry)
 Performs an approximate convex decomposition on the geometry. More...
 
std::vector< GeometryPtrse2ez::geo::convexifyOptimal (const GeometryPtr &geometry)
 Performs an optimal convex decomposition on the geometry. More...
 
std::vector< GeometryPtrse2ez::geo::shatter (const GeometryPtr &geometry)
 "Shatters" a convex polygon into a fan of triangles using the first point as the root for all triangles. More...