Rect::VClamp

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

VClamp clamps the y1 and y2 values of a rectangle with alternate values. The greater y1 and lesser y2 are set.

Parameters
Parameters 
Description 
T t 
A value compared with the y1 value of the local rectangle. 
T b 
A value that is compared to the y2 value of the local rectangle. 
const Rect<T> & r 
A rectangle whose y1 and y2 components are compared to y1 and y2 respectively, or a range whose First and Last components are compared with y1 and y2. 
Return Value

A Rect reference to a new string whose y1 and y2 components are modified to reflect clamping with alternate values.

See Also