Table of Contents

Method Wrap

Namespace
Alternet.Common
Assembly
Alternet.Common.v9.dll

Wrap(int, int, int)

Wraps given value into specified interval.

public static int Wrap(int value, int min, int max)

Parameters

value int

Value to probe.

min int

Minimum possible value.

max int

Maximum possible value.

Returns

int

Maximum if value less then minimum, minimum if value more then maximum; otherwise original value.