#include <DantzigBoxedLcpSolver.hpp>
|
const std::string & | getType () const override |
| Returns the type. More...
|
|
void | solve (int n, double *A, double *x, double *b, int nub, double *lo, double *hi, int *findex) override |
| Solves constriant impulses for a constrained group. More...
|
|
bool | canSolve (int n, const double *A) override |
|
template<typename BoxedLcpSolverT > |
bool | is () const |
| Get true if this solver and the template parameter (a solver class) are the same type. More...
|
|
◆ canSolve()
bool dart::constraint::DantzigBoxedLcpSolver::canSolve |
( |
int |
n, |
|
|
const double * |
A |
|
) |
| |
|
overridevirtual |
◆ getStaticType()
const std::string & dart::constraint::DantzigBoxedLcpSolver::getStaticType |
( |
| ) |
|
|
static |
Returns type for this class.
◆ getType()
const std::string & dart::constraint::DantzigBoxedLcpSolver::getType |
( |
| ) |
const |
|
overridevirtual |
◆ is()
template<typename BoxedLcpSolverT >
bool dart::constraint::BoxedLcpSolver::is |
|
inherited |
Get true if this solver and the template parameter (a solver class) are the same type.
This function is a syntactic sugar, which is identical to:
getType() == ShapeType::getStaticType()
const std::string & getType() const override
Returns the type.
Definition: DantzigBoxedLcpSolver.cpp:41
.
Example code:
auto shape = bodyNode->getShapeNode(0)->getShape();
if (shape->is<BoxShape>())
std::cout << "The shape type is box!\n";
- See also
- getType()
◆ solve()
void dart::constraint::DantzigBoxedLcpSolver::solve |
( |
int |
n, |
|
|
double * |
A, |
|
|
double * |
x, |
|
|
double * |
b, |
|
|
int |
nub, |
|
|
double * |
lo, |
|
|
double * |
hi, |
|
|
int * |
findex |
|
) |
| |
|
overridevirtual |