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

◆ RotateAroundPoint()

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

Rotate a vector around point.

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

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

492 {
493 vector offsetPos = pos - point;
494 return RotateAroundZero(offsetPos, axis, cosAngle, sinAngle) + point;
495 }
static vector RotateAroundZero(vector pos, vector axis, float cosAngle, float sinAngle)
Rotate a vector around 0,0,0.
Определения EnConvert.c:477

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