2024-11-23 13:09:12 +08:00
|
|
|
#include "Region.h"
|
2022-10-20 22:46:17 +08:00
|
|
|
using namespace db;
|
|
|
|
|
|
|
|
|
|
/***** Region *****/
|
|
|
|
|
|
|
|
|
|
void Region::addRect(const int xl, const int yl, const int xh, const int yh) {
|
|
|
|
|
rects.emplace_back(xl, yl, xh, yh);
|
2024-06-05 16:11:25 +08:00
|
|
|
lx = std::min(lx, xl);
|
|
|
|
|
ly = std::min(ly, yl);
|
|
|
|
|
hx = std::max(hx, xh);
|
|
|
|
|
hy = std::max(hy, yh);
|
2022-10-20 22:46:17 +08:00
|
|
|
}
|