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

◆ NormalizeAngle()

static proto float Math::NormalizeAngle ( float ang)
staticprivate

Normalizes the angle (0...360)

Аргументы
angfloat Angle for normalizing
Возвращает
float - Normalized angle
Print( Math.NormalizeAngle(390) );
Print( Math.NormalizeAngle(-90) );
>> 30
>> 270
proto void Print(void var)
Prints content of variable to console/log.
void Math()
Определения EnMath.c:8

Используется в HitDirectionEffectBase::CalculateArrowPosition() и DayZInfected::HandleOrientation().