BIS fnc vectorAdd: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Undo revision 164716 by R3vo (talk))
Tag: Undo
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *R([a-z ])" to "$1 - r$2")
 
(20 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|Comments=
{{RV|type=function
____________________________________________________________________________________________
|game1= arma2
|version1= 1.00


| arma2 |Game name=
|game2= arma2oa
|version2= 1.50


|1.00|Game version=
|game3= tkoh
|version3= 1.00


|gr1= Vectors |GROUP1=
|game4= arma3
____________________________________________________________________________________________
|version4= 0.50


| Returns the sum of two vectors. {{Feature arma3|Use [[vectorAdd]] instead.}}|Description=
|gr1= Vectors
____________________________________________________________________________________________


| [vector1, vector2] call [[BIS_fnc_vectorAdd]] |Syntax=
|descr= Returns the sum of two vectors.
{{Feature|arma3|If the vector is either 2D or 3D use [[vectorAdd]] instead.}}


|p1= vector1: [[Array]] of [[Number|Numbers]] |Parameter 1=
|s1= [vector1, vector2] call [[BIS_fnc_vectorAdd]]


|p2= vector2: [[Array]] of [[Number|Numbers]] |Parameter 2=
|p1= vector1: [[Array]] of [[Number]]s


| [[Array]] of [[Number|Numbers]] - result vector |Return value=
|p2= vector2: [[Array]] of [[Number]]s
____________________________________________________________________________________________


|x1= <code><nowiki>[</nowiki>[1,1,1], [2,5,3]] [[call]] [[BIS_fnc_vectorAdd]]; {{codecomment|// returns [3,6,4]}}</code> |Example 1=
|r1= [[Array]] of [[Number]]s - resulting vector
____________________________________________________________________________________________


| [[vectorAdd]] |See also=
|x1= <sqf>[[1, 1, 1, 1, 1], [2, 5, 3, 1, 1]] call BIS_fnc_vectorAdd; // returns [3,6,4,2,2]</sqf>
 
|seealso= [[vectorAdd]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Functions|{{uc:vectorAdd}}]]
[[Category:{{Name|arma2}}: Functions|{{uc:vectorAdd}}]]
[[Category:{{Name|arma2oa}}: Functions|{{uc:vectorAdd}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:vectorAdd}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:vectorAdd}}]]

Latest revision as of 15:47, 8 November 2023

Hover & click on the images for description

Description

Description:
Returns the sum of two vectors.
Arma 3
If the vector is either 2D or 3D use vectorAdd instead.
Execution:
call
Groups:
Vectors

Syntax

Syntax:
[vector1, vector2] call BIS_fnc_vectorAdd
Parameters:
vector1: Array of Numbers
vector2: Array of Numbers
Return Value:
Array of Numbers - resulting vector

Examples

Example 1:
[[1, 1, 1, 1, 1], [2, 5, 3, 1, 1]] call BIS_fnc_vectorAdd; // returns [3,6,4,2,2]

Additional Information

See also:
vectorAdd

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note