INumberRange<T>.Clamp

Method in INumberRange<T>

Declaration

T Clamp(T value)

Description

Clamps a value to the range.

Parameters

valueThe value to clamp.

Returns

TThe clamped value.