double lm;
Constraint(Variable *left, Variable *right, double gap, bool equality=false);
~Constraint();
- inline double slack() const { return right->position() - gap - left->position(); }
+ double slack() const { return right->position() - gap - left->position(); }
long timeStamp;
bool active;
bool visited;
maxY=y+height()-yBorder;
minY=y;
}
- inline double overlapX(const Rectangle &r) const {
+ double overlapX(const Rectangle &r) const {
if (getCentreX() <= r.getCentreX() && r.minX < getMaxX())
return getMaxX() - r.minX;
if (r.getCentreX() <= getCentreX() && minX < r.getMaxX())
return r.getMaxX() - minX;
return 0;
}
- inline double overlapY(const Rectangle &r) const {
+ double overlapY(const Rectangle &r) const {
if (getCentreY() <= r.getCentreY() && r.minY < getMaxY())
return getMaxY() - r.minY;
if (r.getCentreY() <= getCentreY() && minY < r.getMaxY())
Constraints in;
Constraints out;
char *toString();
- inline Variable(const int id, const double desiredPos, const double weight)
+ Variable(const int id, const double desiredPos, const double weight)
: id(id)
, desiredPosition(desiredPos)
, weight(weight)
, visited(false)
{
}
- inline double position() const {
+ double position() const {
return block->posn+offset;
}
};