DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ CurveExp()

float CurveExp ( float low,
float high,
float value,
float power )
private

См. определение в файле DayZPlayerImplementFallDamage.c строка 92

93 {
94 float t = Math.InverseLerp(low, high, value);
95 t = Math.Clamp(t, 0, 1);
96 return Math.Pow(t, power);
97 }
Определения EnMath.c:7
static proto float Clamp(float value, float min, float max)
Clamps 'value' to 'min' if it is lower than 'min', or to 'max' if it is higher than 'max'.
static proto float InverseLerp(float a, float b, float value)
Calculates the linear value that produces the interpolant value within the range [a,...
static proto float Pow(float v, float power)
Return power of v ^ power.

Перекрестные ссылки Math::Clamp(), Math::InverseLerp() и Math::Pow().

Используется в HandleFallDamage().