ClampMin compares the x and y coordinates of the current point to an alternate value. If the coordinate value is less than the alternate value, the alternate value replaces the original coordinate value. This function essentially executes the following code:
if (pt1.x < _min)
x = _min;
if (pt1.y < _min)
y = _min;
Parameters
Parameters
Description
T _min
A value that is compared to both the x and y coordinate values of the current point. If either coordinate value is less than _min, the original coordinate value is set to _min.