Size::ExpandedTo

Size::ExpandedTo
inline Size<T> ExpandedTo(const Size<T> & sz) const;
inline Size<T> ExpandedTo(T w, T h) const;
Description

ExpandedTo expands the current size to passed values (unions them) by comparing their components respectively. The greater component is chosen. The following expression may be used to represent the result:

   (Width, Height) = (max(Width, [sz.Width, w]), max(Height, [sz.Height, h]))
Parameters
Parameters 
Description 
const Size<T> & sz 
A size whose components are compared to those of a current size. 
T w 
A value that is compared to Width
T h 
A value that is compared to Height
Return Value

A Size reference to the current string whose components represent the union of two sizes.