Box::Box(double xMin, double xMax, double yMin, double yMax) { m_min[vpsc::XDIM] = nonNegative(xMin); m_max[vpsc::XDIM] = nonNegative(xMax); m_min[vpsc::YDIM] = nonNegative(yMin); m_max[vpsc::YDIM] = nonNegative(yMax); }
Box::Box(double all) { double value = nonNegative(all); m_min[vpsc::XDIM] = value; m_max[vpsc::XDIM] = value; m_min[vpsc::YDIM] = value; m_max[vpsc::YDIM] = value; }
void nonNegative2D(int x, int y, const std::string& caller, const std::string& xValueName, const std::string& yValueName, const std::string& details) { nonNegative(x, caller, xValueName, details); nonNegative(y, caller, yValueName, details); }