DayZ 1.29
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 строка 504

505 {
506 vector offsetPos = pos - point;
507 return RotateAroundZero(offsetPos, axis, cosAngle, sinAngle) + point;
508 }
static vector RotateAroundZero(vector pos, vector axis, float cosAngle, float sinAngle)
Rotate a vector around 0,0,0.
Определения EnConvert.c:490

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