ffur2007slx2_5
Arma 3 v1.22 Algorithm:
Vector1 = [x1,y1,z1]; Vector2 = [x2,y2,z2];
Result = (x1 * x2) + (y1 * y2) + (z1 * z2);
It is recommended to use vectorDotProduct instead of BIS_fnc_dotProduct.
Results appear below as you type; use the arrow keys to move through them.
Dot product of two 3D vectors.
Note
Since Arma 3 v2.14: Since Arma 3 v2.14 any count of numbers is valid, but both arrays must be same length.
Before Arma 3 v2.14, the first argument had to be vector 3D, or Arma 3 v2.00 2D (With z coordinate defaulted to 0)
vector1 vectorDotProduct vector2
Parameters:
Returns: Number
_dot = [1,0,1] vectorDotProduct [0,0,2];
vectorAdd · vectorDiff · vectorCrossProduct · vectorCos · vectorMagnitude · vectorMagnitudeSqr · vectorMultiply · vectorDistance · vectorDistanceSqr · vectorDir · vectorUp · setVectorDir · setVectorUp · setVectorDirAndUp · vectorNormalized · vectorFromTo · matrixMultiply · matrixTranspose
Arma 3 v1.22 Algorithm:
Vector1 = [x1,y1,z1]; Vector2 = [x2,y2,z2];
Result = (x1 * x2) + (y1 * y2) + (z1 * z2);
It is recommended to use vectorDotProduct instead of BIS_fnc_dotProduct.