ffur2007slx2_5
Arma 3 v1.22 Algorithm:
Vector = [x,y,z];
Result = sqrt ((x ^ 2) + (y ^ 2) + (z ^ 2));
It is recommended to use vectorMagnitude instead of BIS_fnc_magnitude.
Results appear below as you type; use the arrow keys to move through them.
Magnitude of a 3D vector.
Note
Since Arma 3 v2.14: Since Arma 3 v2.14 any count of numbers is valid.
Before Arma 3 v2.14, the argument had to be vector 3D, or Arma 3 v2.00 2D (With z coordinate defaulted to 0)
vectorMagnitude vector
Parameters:
Returns: Number
_size = vectorMagnitude [0,3,4]; // returns 5
_speed = vectorMagnitude velocity player; // return velocity of player in m/s
_speed = (vectorMagnitude velocity player) * 3.6; // return velocity of player in km/h
_speed = (vectorMagnitude velocity player) * 2.23694; // return velocity of player in mph
vectorAdd · vectorDiff · vectorCrossProduct · vectorDotProduct · vectorCos · vectorMagnitudeSqr · vectorMultiply · vectorDistance · vectorDistanceSqr · vectorDir · vectorUp · setVectorDir · setVectorUp · setVectorDirAndUp · vectorNormalized · vectorFromTo · matrixMultiply · matrixTranspose
Arma 3 v1.22 Algorithm:
Vector = [x,y,z];
Result = sqrt ((x ^ 2) + (y ^ 2) + (z ^ 2));
It is recommended to use vectorMagnitude instead of BIS_fnc_magnitude.