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

◆ VectorIsEqual()

static bool Math::VectorIsEqual ( vector v1,
vector v2,
float tolerance )
inlinestaticprivate

Returns if given vectors are equal with given tolerance.

Аргументы
v1float First vector for comparison
v2float Second vector for comparison
tolerancefloat Range in which given vectors can differ
Возвращает
bool - True if Vectors are equal; otherwise false

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

767 {
768 return (Math.AbsFloat(v1[0] - v2[0]) <= tolerance && Math.AbsFloat(v1[1] - v2[1]) <= tolerance && Math.AbsFloat(v1[2] - v2[2]) <= tolerance);
769 }
void Math()
Определения EnMath.c:8

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