|
static T | Clamp< T > (T value, T min, T max) |
| Clamps value within the range ( min - max ) More...
|
|
static int | Scale (int input, int inRangeMin, int inRangeMax, int outRangeMin, int outRangeMax) |
| Accepts input , a number in the range ( inRangeMin - inRangeMax ), and translates it to be within the range ( outRangeMin - outRangeMax ). More...
|
|
static int | Scale (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...
|
|
static long | Scale (long input, long inRangeMin, long inRangeMax, long outRangeMin, long outRangeMax) |
| Accepts input , a number in the range ( inRangeMin - inRangeMax ), and translates it to be within the range ( outRangeMin - outRangeMax ). More...
|
|
static long | Scale (long input,(long, long) inRange,(long, long) 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...
|
|
static float | Scale (float input, float inRangeMin, float inRangeMax, float outRangeMin, float outRangeMax) |
| Accepts input , a number in the range ( inRangeMin - inRangeMax ), and translates it to be within the range ( outRangeMin - outRangeMax ). More...
|
|
static float | Scale (float input,(float, float) inRange,(float, float) 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...
|
|
static double | Scale (double input, double inRangeMin, double inRangeMax, double outRangeMin, double outRangeMax) |
| Accepts input , a number in the range ( inRangeMin - inRangeMax ), and translates it to be within the range ( outRangeMin - outRangeMax ). More...
|
|
static double | Scale (double input,(double, double) inRange,(double, double) 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...
|
|
Methods for various mathematics operations not covered by Math
static double VolumeControl.TypeExtensions.MathExt.Scale |
( |
double |
input, |
|
|
(double, double) |
inRange, |
|
|
(double, double) |
outRange |
|
) |
| |
|
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(double,double,double,double,double) for an overload that doesn't use tuples.
- Parameters
-
input | The input number |
inRange | The range that input is within. |
outRange | The range to translate input to. |
- Returns
- Equivalent value of input were it to be within the range ( outRange .Item1 - outRange .Item2 )
static float VolumeControl.TypeExtensions.MathExt.Scale |
( |
float |
input, |
|
|
(float, float) |
inRange, |
|
|
(float, float) |
outRange |
|
) |
| |
|
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(float,float,float,float,float) for an overload that doesn't use tuples.
- Parameters
-
input | The input number |
inRange | The range that input is within. |
outRange | The range to translate input to. |
- Returns
- Equivalent value of input were it to be within the range ( outRange .Item1 - outRange .Item2 )
static int VolumeControl.TypeExtensions.MathExt.Scale |
( |
int |
input, |
|
|
(int, int) |
inRange, |
|
|
(int, int) |
outRange |
|
) |
| |
|
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) for an overload that doesn't use tuples.
- Parameters
-
input | The input number |
inRange | The range that input is within. |
outRange | The range to translate input to. |
- Returns
- Equivalent value of input were it to be within the range ( outRange .Item1 - outRange .Item2 )
static long VolumeControl.TypeExtensions.MathExt.Scale |
( |
long |
input, |
|
|
(long, long) |
inRange, |
|
|
(long, long) |
outRange |
|
) |
| |
|
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(long, long, long, long, long) for an overload that doesn't use tuples.
- Parameters
-
input | The input number |
inRange | The range that input is within. |
outRange | The range to translate input to. |
- Returns
- Equivalent value of input were it to be within the range ( outRange .Item1 - outRange .Item2 )