Classes | Public Member Functions | Private Member Functions | Private Attributes
ApproxMVBB::MinAreaRectangle Class Reference

#include <MinAreaRectangle.hpp>

List of all members.

Classes

struct  Box2d
struct  Caliper

Public Member Functions

void compute ()
const Box2dgetMinRectangle ()
template<typename Derived >
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
ApproxMVBB_DEFINE_MATRIX_TYPES
ApproxMVBB_DEFINE_POINTS_CONFIG_TYPES 
MinAreaRectangle (const MatrixBase< Derived > &points)

Private Member Functions

void adjustRectangle ()
void computeRectangle ()
void findVertex (Caliper &c)
void getBox (Caliper(&c)[4], Box2d &box)
void updateAngles (PREC edgeAngle, Caliper(&c)[4])
void updateCalipers (PREC edgeAngle, Caliper(&c)[4])

Private Attributes

std::vector< PREC > m_angles
ConvexHull2D m_convh
std::vector< unsigned int > m_hullIdx
Box2d m_minBox
const MatrixRef< const Matrix2Dyn > m_p

Detailed Description

Computes the Minimum Area Rectangle of the input points SideEffects: points is aftwards sorted and

Definition at line 30 of file MinAreaRectangle.hpp.


Constructor & Destructor Documentation

template<typename Derived >
EIGEN_MAKE_ALIGNED_OPERATOR_NEW ApproxMVBB_DEFINE_MATRIX_TYPES ApproxMVBB_DEFINE_POINTS_CONFIG_TYPES ApproxMVBB::MinAreaRectangle::MinAreaRectangle ( const MatrixBase< Derived > &  points) [inline]

Cosntructor, points is not a temporary, it accepts all sorts of matrix expressions, however the construction of MatrixRef<> might create a temporary but this is stored in m_p! MatrixRef<> m_p is handed further to m_conv

Definition at line 42 of file MinAreaRectangle.hpp.


Member Function Documentation

Definition at line 88 of file MinAreaRectangle.hpp.

Definition at line 13 of file MinAreaRectangle.cpp.

Definition at line 36 of file MinAreaRectangle.cpp.

Definition at line 118 of file MinAreaRectangle.cpp.

void ApproxMVBB::MinAreaRectangle::getBox ( Caliper(&)  c[4],
Box2d box 
) [private]

Definition at line 168 of file MinAreaRectangle.cpp.

Definition at line 69 of file MinAreaRectangle.hpp.

void ApproxMVBB::MinAreaRectangle::updateAngles ( PREC  edgeAngle,
Caliper(&)  c[4] 
) [inline, private]

Definition at line 179 of file MinAreaRectangle.hpp.

void ApproxMVBB::MinAreaRectangle::updateCalipers ( PREC  edgeAngle,
Caliper(&)  c[4] 
) [inline, private]

Definition at line 169 of file MinAreaRectangle.hpp.


Member Data Documentation

std::vector<PREC> ApproxMVBB::MinAreaRectangle::m_angles [private]

Definition at line 200 of file MinAreaRectangle.hpp.

Definition at line 204 of file MinAreaRectangle.hpp.

std::vector<unsigned int> ApproxMVBB::MinAreaRectangle::m_hullIdx [private]

Definition at line 198 of file MinAreaRectangle.hpp.

Definition at line 201 of file MinAreaRectangle.hpp.

const MatrixRef<const Matrix2Dyn> ApproxMVBB::MinAreaRectangle::m_p [private]

Definition at line 202 of file MinAreaRectangle.hpp.


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


asr_approx_mvbb
Author(s): Gassner Nikolai
autogenerated on Sat Jun 8 2019 20:21:50