Class MathHelper
Namespace: BenchmarkDotNet.Mathematics
Assembly: BenchmarkDotNet.dll
Syntax
public static class MathHelper
Methods
Clamp(Int32, Int32, Int32)
Declaration
public static int Clamp(int value, int min, int max)
Parameters
Type | Name | Description |
---|---|---|
Int32 | value | |
Int32 | min | |
Int32 | max |
Returns
Type | Description |
---|---|
Int32 |