Strong Coupling Core
0.1.0
Library for solving a system of strong coupled physical subsystems.
|
Base class for constraints. More...
#include <Constraint.h>
Public Member Functions | |
Constraint (Connector *, Connector *) | |
virtual | ~Constraint () |
int | getNumEquations () |
Get number of equations in this constraint. More... | |
Equation * | getEquation (int i) |
Get one of the equations. More... | |
Connector * | getConnA () |
Get connectors. More... | |
Connector * | getConnB () |
virtual void | update () |
Public Attributes | |
void * | userData |
Arbitrary data from the user. More... | |
Protected Member Functions | |
void | addEquation (Equation *eq) |
Protected Attributes | |
std::vector< Equation * > | m_equations |
Connector * | m_connA |
Connector * | m_connB |
Base class for constraints.
|
virtual |
|
protected |
Connector * Constraint::getConnA | ( | ) |
Get connectors.
Connector * Constraint::getConnB | ( | ) |
Equation * Constraint::getEquation | ( | int | i | ) |
Get one of the equations.
int Constraint::getNumEquations | ( | ) |
Get number of equations in this constraint.
|
virtual |
Reimplemented in sc::BallJointConstraint, and sc::LockConstraint.
|
protected |
|
protected |
|
protected |
void* sc::Constraint::userData |
Arbitrary data from the user.