Classes | Public Member Functions | Private Types | Private Attributes
cob_3d_mapping::MinimalRectangle2D Class Reference

Class for computing a minimal rectangle in 2D. More...

#include <minimal_rectangle_2d.h>

List of all members.

Classes

class  Line

Public Member Functions

float computeArea (const PT &p1, const PT &p2, const PT &p3)
void getIntersection (const Line &l1, const Line &l2, PT &point)
LineminAngle (Line *lhs, Line *rhs)
LineminAngle (Line *i, Line *j, Line *k, Line *l)
 MinimalRectangle2D ()
void rotatingCalipers (PT &origin, PT &ccw, PT &cw)
template<typename T >
void setConvexHull (const T &hull)
template<typename T >
void setConvexHullList (const T &hull)

Private Types

typedef Eigen::Vector2f PT

Private Attributes

std::vector< PTedges
std::vector< PTvertices

Detailed Description

Class for computing a minimal rectangle in 2D.

Ref: Solving Geometric Problems with the Rotating Calipers [Toussaint 1983] http://geomalgorithms.com/a08-_containers.html

Definition at line 76 of file minimal_rectangle_2d.h.


Member Typedef Documentation

typedef Eigen::Vector2f cob_3d_mapping::MinimalRectangle2D::PT [private]

Definition at line 79 of file minimal_rectangle_2d.h.


Constructor & Destructor Documentation

Definition at line 117 of file minimal_rectangle_2d.h.


Member Function Documentation

float cob_3d_mapping::MinimalRectangle2D::computeArea ( const PT p1,
const PT p2,
const PT p3 
) [inline]

Definition at line 161 of file minimal_rectangle_2d.h.

void cob_3d_mapping::MinimalRectangle2D::getIntersection ( const Line l1,
const Line l2,
PT point 
) [inline]

Definition at line 157 of file minimal_rectangle_2d.h.

Line* cob_3d_mapping::MinimalRectangle2D::minAngle ( Line lhs,
Line rhs 
) [inline]

Definition at line 151 of file minimal_rectangle_2d.h.

Line* cob_3d_mapping::MinimalRectangle2D::minAngle ( Line i,
Line j,
Line k,
Line l 
) [inline]

Definition at line 154 of file minimal_rectangle_2d.h.

void cob_3d_mapping::MinimalRectangle2D::rotatingCalipers ( PT origin,
PT ccw,
PT cw 
) [inline]

Definition at line 164 of file minimal_rectangle_2d.h.

template<typename T >
void cob_3d_mapping::MinimalRectangle2D::setConvexHull ( const T &  hull) [inline]

Definition at line 121 of file minimal_rectangle_2d.h.

template<typename T >
void cob_3d_mapping::MinimalRectangle2D::setConvexHullList ( const T &  hull) [inline]

Definition at line 137 of file minimal_rectangle_2d.h.


Member Data Documentation

Definition at line 223 of file minimal_rectangle_2d.h.

Definition at line 224 of file minimal_rectangle_2d.h.


The documentation for this class was generated from the following file:


cob_3d_mapping_common
Author(s): Georg Arbeiter
autogenerated on Wed Aug 26 2015 11:02:19