Beispiel #1
0
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);
}
Beispiel #2
0
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;
}
Beispiel #3
0
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);
}