|
Adaptagrams
|
A constraint determines a minimum or exact spacing required between two Variable objects. More...
#include <constraint.h>

Public Member Functions | |
| Constraint (Variable *left, Variable *right, double gap, bool equality=false) | |
| Constructs a minimum or exact spacing constraint between two Variable objects. More... | |
| std::string | toString (void) const |
| Returns a textual description of the constraint. More... | |
Public Attributes | |
| Variable * | left |
| The left Variable. | |
| Variable * | right |
| The right Variable. | |
| double | gap |
| The minimum or exact distance to separate the variables by. | |
| const bool | equality |
| Whether the separation is an exact distance or not. | |
| bool | unsatisfiable |
| Denote whether this constraint was unsatisifable (once the VPSC instance has been solved or satisfied). | |
A constraint determines a minimum or exact spacing required between two Variable objects.
| vpsc::Constraint::Constraint | ( | Variable * | left, |
| Variable * | right, | ||
| double | gap, | ||
| bool | equality = false |
||
| ) |
Constructs a minimum or exact spacing constraint between two Variable objects.
(left + gap < right) or (left + gap == right)
|
inline |
1.8.14