UnionRect determines the union of two rectangles by comparing their components. The lesser x1 and y1 values and greater x2 and y2 values set the new rectangle components.
Parameters |
Description |
Rect<T> * pdest |
A pointer to the rectangle whose components will reflect the union of the current rectangle with another rectangle. |
const Rect<T> & r |
A rectangle that is unioned with the current rectangle. |