IntRange.Clamp

Method in IntRange

Declaration

public int Clamp(int value)

Description

Clamps a value to the range.

Parameters

valueThe value to clamp.

Returns

intThe clamped value.