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

◆ Cross()

vector vector::Cross ( vector v)
inlineprivate

Returns cross product of this vector with passed vector.

Возвращает
vector cross product of vectors
vector v1 = vector.Up; // "0 1 0"
vector v2 = vector.Forward; // "0 0 1"
vector cross = v1.Cross(v2);
Print(cross);
>> <1, 0, 0>
static const vector Forward
Определения EnConvert.c:122
vector Cross(vector v)
Returns cross product of this vector with passed vector.
Определения EnConvert.c:239
static const vector Up
Определения EnConvert.c:120
Определения EnConvert.c:119
proto void Print(void var)
Prints content of variable to console/log.

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

240 {
241 float x = value[1] * v[2] - value[2] * v[1];
242 float y = value[2] * v[0] - value[0] * v[2];
243 float z = value[0] * v[1] - value[1] * v[0];
244
245 return Vector(x, y, z);
246 }
Icon x
Icon y
proto native vector Vector(float x, float y, float z)
Vector constructor from components.

Перекрестные ссылки Vector(), x и y.