chrono::utils::ChConvexHull2D Class Reference

Description

Simple 2D convex hull class.

#include <ChConvexHull.h>

Public Types

enum  Method { JARVIS, GRAHAM }
 

Public Member Functions

 ChConvexHull2D (std::vector< ChVector2d > &points, Method method=JARVIS)
 Construct the convex hull of the specified points, using the given method.
 
const std::vector< ChVector2d > & 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.
 

Member Enumeration Documentation

◆ Method

Enumerator
JARVIS 

Jarvis algorithm (wrapping)

GRAHAM 

Graham scan algorithm.


The documentation for this class was generated from the following files:
  • /builds/uwsbel/chrono/src/chrono/utils/ChConvexHull.h
  • /builds/uwsbel/chrono/src/chrono/utils/ChConvexHull.cpp