inline Size<T> ClampedTo(const Size<T> & sz) const; inline Size<T> ClampedTo(T w, T h) const;
ClampedTo clamps the current size to alternate values by comparing them to the component values. The lesser values are chosen. The following expression may be used to represent the result:
(result.Width, result.Height) = (min(Width, [sz.Width, w]), min(Height, [sz.Height, h]))
A new Size whose components are determined by clamping the components of the current size to alternate values.