Class for computing a minimal rectangle in 2D. More...
#include <minimal_rectangle_2d.h>
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) |
Line * | minAngle (Line *lhs, Line *rhs) |
Line * | minAngle (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< PT > | edges |
std::vector< PT > | vertices |
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.
typedef Eigen::Vector2f cob_3d_mapping::MinimalRectangle2D::PT [private] |
Definition at line 79 of file minimal_rectangle_2d.h.
Definition at line 117 of file minimal_rectangle_2d.h.
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.
void cob_3d_mapping::MinimalRectangle2D::setConvexHull | ( | const T & | hull | ) | [inline] |
Definition at line 121 of file minimal_rectangle_2d.h.
void cob_3d_mapping::MinimalRectangle2D::setConvexHullList | ( | const T & | hull | ) | [inline] |
Definition at line 137 of file minimal_rectangle_2d.h.
std::vector<PT> cob_3d_mapping::MinimalRectangle2D::edges [private] |
Definition at line 223 of file minimal_rectangle_2d.h.
std::vector<PT> cob_3d_mapping::MinimalRectangle2D::vertices [private] |
Definition at line 224 of file minimal_rectangle_2d.h.