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

◆ GetEventTime()

float HeatComfortAnimHandler::GetEventTime ( float hc_value,
float threshold_low,
float threshold_high,
float low_min,
float high_min,
float low_max,
float high_max )
inlineprotected

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

38 {
39 float inv_value = Math.InverseLerp(threshold_low, threshold_high, hc_value);
40 float value_min = Math.Lerp(low_min, high_min,inv_value);
41 float value_max = Math.Lerp(low_max,high_max,inv_value);
42
43 return Math.RandomFloatInclusive(value_min,value_max);
44 }

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

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