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

Закрытые члены

proto string ToString (bool beautify=true)
 Vector to string.
 
proto float Normalize ()
 Normalizes vector. Returns length.
 
proto vector Normalized ()
 return normalized vector (keeps orginal vector untouched)
 
proto native float Length ()
 Returns length of vector (magnitude)
 
proto native float LengthSq ()
 Returns squared length (magnitudeSqr)
 
vector Perpend ()
 Returns perpendicular vector. Perpendicular vector is computed as cross product between input vector and up vector (0, 1, 0).
 
vector GetRelAngles ()
 Returns relative angles between -180 and 180, not 0 to 360.
 
proto float VectorToYaw ()
 Returns yaw of vector.
 
proto vector VectorToAngles ()
 Converts vector to spherical coordinates with radius = 1.
 
proto vector AnglesToVector ()
 Converts spherical coordinates (yaw, pitch, roll in degrees) to unit length vector.
 
proto void RotationMatrixFromAngles (out vector mat[3])
 Creates rotation matrix from angles.
 
proto vector Multiply4 (vector mat[4])
 Transforms position.
 
proto vector Multiply3 (vector mat[3])
 Transforms vector.
 
proto vector InvMultiply4 (vector mat[4])
 Invert-transforms position.
 
proto vector InvMultiply3 (vector mat[3])
 Invert-transforms vector.
 

Закрытые статические члены

static proto native float Distance (vector v1, vector v2)
 Returns the distance between tips of two 3D vectors.
 
static proto native float DistanceSq (vector v1, vector v2)
 Returns the square distance between tips of two 3D vectors.
 
static vector Direction (vector p1, vector p2)
 Returns direction vector from point p1 to point p2.
 
static vector RandomDir ()
 Returns randomly generated unit vector.
 
static vector RandomDir2D ()
 Returns randomly generated XZ unit vector with the Y(up) axis set to 0.
 
static float Dot (vector v1, vector v2)
 Returns Dot product of vector v1 and vector v2.
 
proto static native vector YawToVector (float yaw)
 Returns vector of yaw.
 
static proto native vector Lerp (vector v1, vector v2, float t)
 Lerp between two vectors.
 
static vector RotateAroundZeroDeg (vector vec, vector axis, float angle)
 Rotate a vector around 0,0,0 by an angle in degrees.
 
static vector RotateAroundZeroRad (vector vec, vector axis, float angle)
 Rotate a vector around 0,0,0 by an angle in radians.
 
static vector RotateAroundZero (vector pos, vector axis, float cosAngle, float sinAngle)
 Rotate a vector around 0,0,0.
 
static vector RotateAroundPoint (vector point, vector pos, vector axis, float cosAngle, float sinAngle)
 Rotate a vector around point.
 
static vector ArrayToVec (float arr[])
 Convert static array of floats into a vector.
 

Закрытые статические данные

static const vector Up = "0 1 0"
 
static const vector Aside = "1 0 0"
 
static const vector Forward = "0 0 1"
 
static const vector Zero = "0 0 0"
 

Подробное описание

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