MRSL DecompUtil Library  0.1
An implementaion of convex decomposition over point cloud
Public Member Functions | Public Attributes | List of all members
LinearConstraint< Dim > Struct Template Reference

[A, b] for $Ax < b$ More...

#include <polyhedron.h>

Public Member Functions

 LinearConstraint ()
 Null constructor.
 
 LinearConstraint (const MatDNf< Dim > &A, const VecDf &b)
 Construct from $A, b$ directly, s.t $Ax < b$.
 
 LinearConstraint (const Vecf< Dim > p0, const vec_E< Hyperplane< Dim >> &vs)
 Construct from a inside point and hyperplane array. More...
 
bool inside (const Vecf< Dim > &pt)
 Check if the point is inside polyhedron using linear constraint.
 

Public Attributes

MatDNf< Dim > A_
 
VecDf b_
 

Detailed Description

template<int Dim>
struct LinearConstraint< Dim >

[A, b] for $Ax < b$

Constructor & Destructor Documentation

template<int Dim>
LinearConstraint< Dim >::LinearConstraint ( const Vecf< Dim >  p0,
const vec_E< Hyperplane< Dim >> &  vs 
)
inline

Construct from a inside point and hyperplane array.

Parameters
p0point that is inside
vshyperplane array, normal should go outside

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