clamp

open fun clamp(value: Number, low: Number, high: Number): Double

Returns value clamped between low and high boundaries.

Return

The clamped value.

Parameters

value

Value to clamp.

low

The lower boundary to which to clamp value.

high

The higher boundary to which to clamp value.