49 double minX,maxX,minY,maxY;
58 Constraint** &cs,
const bool useNeighbourLists);
Functions to automatically generate constraints for the rectangular node overlap removal problem.
double getCentreY() const
double getCentreX() const
double overlapX(const Rectangle &r) const
double overlapY(const Rectangle &r) const
friend std::ostream & operator<<(std::ostream &os, const Rectangle &r)
#define X(prefix, name, str, type, subtype,...)
int generateYConstraints(const std::vector< Rectangle > &rs, Variable **vars, Constraint **&cs)
int generateXConstraints(const std::vector< Rectangle > &rs, Variable **vars, Constraint **&cs, const bool useNeighbourLists)
A constraint determines a minimum or exact spacing required between two variables.