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

◆ InterpolateTemperatureDelta()

class TemperatureData InterpolateTemperatureDelta ( float start)

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

36 {
38
39 float target = m_Value;
40 m_AdjustedTarget = start;
41
42 if (start != target)
43 {
44 float diffAbs = Math.Max(start,target) - Math.Min(start,target);
47
48 float coef = m_UpdateTimeCoef;
49 float absBaseTempChange = m_UpdateTimeInfo * m_InterpolatedStepSize;
50
51 if (start > target)
52 {
53 absBaseTempChange *= -1;
56 }
57
59 absBaseTempChange *= coef;
60
61 m_AdjustedTarget = start + Math.Clamp(absBaseTempChange,-diffAbs,diffAbs);
62 }
63 }
float m_InterpolatedStepSize
Определения TemperatureData.c:44
float m_InterpolatedFraction
Определения TemperatureData.c:45
float m_AdjustedTarget
Определения TemperatureData.c:39
float m_HeatPermeabilityCoef
Определения TemperatureData.c:42
float m_UpdateTimeInfo
Определения TemperatureData.c:40
float m_UpdateTimeCoef
Определения TemperatureData.c:41
bool m_UseGlobalCooling
Определения TemperatureData.c:37
Определения EnMath.c:7
string m_Value
Определения EnEntity.c:808
const float TEMP_COEF_COOLING_GLOBAL
Определения 3_Game/constants.c:949
static const float TEMPERATURE_RATE_MAX_ABS
Определения 3_Game/constants.c:923
static const float TEMPERATURE_INTERPOLATION_THRESHOLD_MIN_ABS
Определения 3_Game/constants.c:925
static const float TEMPERATURE_RATE_AVERAGE_ABS
Определения 3_Game/constants.c:922
static const float TEMPERATURE_INTERPOLATION_THRESHOLD_MAX_ABS
Определения 3_Game/constants.c:926
static proto float Max(float x, float y)
Returns bigger of two given values.
static proto float Lerp(float a, float b, float time)
Linearly interpolates between 'a' and 'b' given 'time'.
static proto float Min(float x, float y)
Returns smaller of two given values.
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,...

Перекрестные ссылки TemperatureData::TemperatureData().