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

◆ RotateAroundZero()

static vector vector::RotateAroundZero ( vector pos,
vector axis,
float cosAngle,
float sinAngle )
inlinestaticprivate

Rotate a vector around 0,0,0.

Аргументы
posvector to rotate
axisaxis to rotate around
cosAnglecos of angle
sinAnglesin of angle
Возвращает
vector transformed vector

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

478 {
479 return (pos * cosAngle) + ((axis * pos) * sinAngle) + (axis * vector.Dot(axis, pos)) * (1 - cosAngle);
480 }

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

Используется в FilterObstructedObjectsByGrouping(), RotateAroundPoint() и GameInventory::SetGroundPosByOwnerBounds().