Volume Control
Application-specific hotkeys for Windows
|
Extensions for the int integral type. More...
Static Public Member Functions | |
static int | Scale (this int input, int inRangeMin, int inRangeMax, int outRangeMin, int outRangeMax) |
static int | Scale (this int input,(int, int) inRange,(int, int) outRange) |
Accepts input , a number in the range ( inRange .Item1 - inRange .Item2 ), and translates it to be within the range ( outRange .Item1 - outRange .Item2 ). More... | |
Extensions for the int integral type.
|
static |
Accepts input , a number in the range ( inRange .Item1 - inRange .Item2 ), and translates it to be within the range ( outRange .Item1 - outRange .Item2 ).
See Scale(int, int, int, int, int) if you're having trouble with the tuples.
input | The input number |
inRange | The range that input is within. |
outRange | The range to translate input to. |