UnionRect


function UnionRect(const rec1, rec2: TRect): TRect; overload;

function UnionRect(const rec1, rec2: TRectD): TRectD; overload;

This function differs from the function of the same name found in Delphi's Types unit such that, when one parameter is an empty rect, the function will return the other parameter.