Rect::Union

Rect::Union
inline Rect<T>& Union(T l, T t, T r, T b);
inline Rect<T>& Union(const Rect<T> & r);
Description

Union 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
Parameters 
Description 
T l 
A value that is compared to x1. 
T t 
A value that is compared to y1. 
T r 
A value that is compared to x2. 
T b 
A value that is compared to y2. 
Return Value

A Rect reference to a new string whose components will reflect the union of itself and another rectangle.