NLToolbox
 All Classes Namespaces Functions
Public Member Functions
nltool::Hpolyhedron Class Reference
Inheritance diagram for nltool::Hpolyhedron:
nltool::Set

List of all members.

Public Member Functions

 Hpolyhedron ()
 Hpolyhedron (int dim, Template &mat, Vector &vec)
 Hpolyhedron (int dim, Template &mat, Vector &vec, Box &box)
 Hpolyhedron (Simplex &simplex)
 Hpolyhedron (Box &box)
virtual ~Hpolyhedron ()
bool includes (Hpolyhedron &poly)
Number optimize (const Vector &direction, Vector &optPoint, bool max=true)
bool includes (Vector &point)
std::vector< Hpolyhedronsplit ()
int clean ()
Number support (Vector &a)
Vector getCoefficients () const
Template getTemplates () const
void setCoefficients (Vector coefficients)
void setTemplates (Template templates)
Template getAllTemplates ()
Vector getAllCoefficients ()
Vertices getVertices ()
void inflate (Number inflat)
const BoxgetBbox () const
void setBbox (const Box &bbox)

Constructor & Destructor Documentation

Non consistent constructor

nltool::Hpolyhedron::Hpolyhedron ( int  dim,
Template &  mat,
Vector &  vec 
)

Constructor

Parameters:
dimdimension
mattemplate matrix corresponding to the inequalities set (mat x <= vec)
vecpolyhedral coefficient corresponding to the inequalities set (mat x <= vec)

Constructor from simplex

Parameters:
simplexsimplex represented with vertices

Constructor from box

Parameters:
boxa box represented by interval products

Destructor


Member Function Documentation

Cleans the set representation by removing redundant constraints

Returns:
the number of redundant constraints removed

Inclusion test

Parameters:
polyanother polyhedron
Returns:
return true if poly is included in this polyhedron, otherwise false
bool nltool::Hpolyhedron::includes ( Vector &  point)

Inclusion test

Parameters:
pointa point
Returns:
return true if the point is included in this polyhedron, otherwise false
Number nltool::Hpolyhedron::optimize ( const Vector &  direction,
Vector &  optPoint,
bool  max = true 
) [inline, virtual]

Optimization method (not implemented)

Reimplemented from nltool::Set.

Splits automatically the polyhedron in two

Returns:
two polyhedron whose union is this polyhedron
Number nltool::Hpolyhedron::support ( Vector &  a)

returns a real number b coresponding to the position of a half-space with normal a defined by the inequality <a,x> <= b such that it supports the actual set

Parameters:
aa directional vector

The documentation for this class was generated from the following files:
 All Classes Namespaces Functions