Rect::HClamp

Rect::HClamp
inline Rect<T>& HClamp(T l, T r);
inline Rect<T>& HClamp(const Rect<T> & r);
Description

HClamp clamps the x1 and y1 values of a rectangle with alternate values. The greater x1 and lesser x2 values are set.

Parameters
Parameters 
Description 
T l 
A value compared with the x1 value of the local rectangle. 
T r 
Either a value that is compared to the x2 value of the local rectangle, a rectangle whose x1 and x2 components are compared to x1 and x2 respectively, or a range whose First and Last components are compared with x1 and x2. 
Return Value

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

See Also