chrono::utils::ChConvexHull2D Class Reference


Simple 2D convex hull class.

#include <ChConvexHull.h>

Public Types

enum  Method { JARVIS, GRAHAM }

Public Member Functions

 ChConvexHull2D (std::vector< ChVector2<>> &points, Method method=JARVIS)
 Construct the convex hull of the specified points, using the given method.
const std::vector< ChVector2<> > & GetHull () const
 Return the points in the convex hull.
double GetPerimeter () const
 Return the perimeter of the convex hull.
double GetArea () const
 Return area enclosed by convex hull.