14#include "../safeguards.h"
25 d.width = std::max(d1.width, d2.width);
26 d.height = std::max(d1.height, d2.height);
44 r.top = std::min(r1.top, r2.top);
45 r.bottom = std::max(r1.bottom, r2.bottom);
46 r.left = std::min(r1.left, r2.left);
47 r.right = std::max(r1.right, r2.right);
Rect BoundingRect(const Rect &r1, const Rect &r2)
Compute the bounding rectangle around two rectangles.
Dimension maxdim(const Dimension &d1, const Dimension &d2)
Compute bounding box of both dimensions.
bool IsEmptyRect(const Rect &r)
Check if a rectangle is empty.
Dimensions (a width and height) of a rectangle in 2D.
Specification of a rectangle with absolute coordinates of all edges.