vectorAdd: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (see) |
Killzone Kid (talk | contribs) No edit summary |
||
Line 12: | Line 12: | ||
| vector1 [[vectorAdd]] vector2 |Syntax= | | vector1 [[vectorAdd]] vector2 |Syntax= | ||
|p1= vector1: [[Array]] |Parameter 1= | |p1= vector1: [[Array]] - vector 3D or 2D (since Arma 3 v1.99.146539, z coordinate is defaulted to 0) |Parameter 1= | ||
|p2= vector2: [[Array]] |Parameter 2= | |p2= vector2: [[Array]] - vector 3D or 2D (since Arma 3 v1.99.146539, z coordinate is defaulted to 0) |Parameter 2= | ||
| [[Array]] |Return value= | | [[Array]] |Return value= |
Revision as of 20:47, 19 July 2020
Description
- Description:
- Adds two 3D vectors. Replaces BIS_fnc_vectorAdd.
- Groups:
- Uncategorised
Syntax
- Syntax:
- vector1 vectorAdd vector2
- Parameters:
- vector1: Array - vector 3D or 2D (since Arma 3 v1.99.146539, z coordinate is defaulted to 0)
- vector2: Array - vector 3D or 2D (since Arma 3 v1.99.146539, z coordinate is defaulted to 0)
- Return Value:
- Array
Examples
- Example 1:
hint str (velocity unit1 vectorAdd velocity unit2);
- Example 2:
[5,10,5] vectorAdd [5,5,10]; // returns [10,15,15]
Additional Information
- See also:
- vectorDiffvectorCrossProductvectorDotProductvectorCosvectorMagnitudevectorMagnitudeSqrvectorMultiplyvectorDistancevectorDistanceSqrvectorDirvectorUpsetVectorDirsetVectorUpsetVectorDirAndUpmatrixMultiplymatrixTranspose
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