clamp

Returns value clamped between low and high boundaries.

Return

The clamped value.

Parameters

low

The lower boundary to which to clamp value.

high

The higher boundary to which to clamp value.


Returns value clamped between low and high boundaries.

Return

The clamped value.

Parameters

range

The range to which to clamp value.