BIS_fnc_dotProduct

From Bohemia Interactive Community
Jump to navigation Jump to search
Introduced with Arma 2 version 1.00
  

Click on the images for descriptions

Introduced in

Game:
Arma 2
Version:
1.00

Description

Description:
Dot product of two vectors.
Arma 3 logo black.png
In Arma 3 use vectorDotProduct

Syntax

Syntax:
[vector1, vector2] call BIS_fnc_dotProduct;
Parameters:
vector1: Array
vector2: Array
Return Value:
Number

Examples

Example 1:
[[1,2,3], [1,2,3]] call BIS_fnc_dotProduct; //Returns: 1*1+2*2+3*3 = 14
Example 2:
[[1,2,3,4], [1,2,3,4]] call BIS_fnc_dotProduct; //Returns: 1*1+2*2+3*3+4*4 = 30

Additional Information

Execution:
call
Multiplayer:
-
See also:
vectorDotProduct

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section