Метод | Описание | |
---|---|---|
Clamp ( this @value, double min, double max ) : double |
Returns the value limited by the range of min..max. If either min or max are double.NaN - they are not limiting the range. |
|
Distance ( this lv, double rv ) : double |
Returns the distance between this and right value.
|
|
Lerp ( double start, double end, double progress ) : double |
Returns linear interpolation between start and end values at position specified as 0..1 range value.
|
|
Max ( this lv, double rv ) : double |
Returns the maximum of this and right value.
|
|
Min ( this lv, double rv ) : double |
Returns the minimum of this and right value.
|
public static Clamp ( this @value, double min, double max ) : double | ||
@value | this | |
min | double | The range minimum. |
max | double | The range maximum. |
Результат | double |
public static Distance ( this lv, double rv ) : double | ||
lv | this | The left value. |
rv | double | The right value. |
Результат | double |
public static Lerp ( double start, double end, double progress ) : double | ||
start | double | The start value. |
end | double | The end value. |
progress | double | The progress between start and end values /// where for progress value of 0 - the start value is returned and for 1 - the right value is returned. |
Результат | double |
public static Max ( this lv, double rv ) : double | ||
lv | this | The left value. |
rv | double | The right value. |
Результат | double |
public static Min ( this lv, double rv ) : double | ||
lv | this | The left value. |
rv | double | The right value. |
Результат | double |