BIS fnc vectorDivide: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Page filling) |
Lou Montana (talk | contribs) m (Fix examples) |
||
Line 18: | Line 18: | ||
| [[Array]] of [[Number]]s |Return value= | | [[Array]] of [[Number]]s |Return value= | ||
|x1= <code>[[123, 456, 789], 5] [[call]] [[BIS_fnc_vectorDivide]];</code> |Example 1= | |x1= <code>[<nowiki/>[123, 456, 789], 5] [[call]] [[BIS_fnc_vectorDivide]];</code> |Example 1= | ||
|x2= <code>[[1, 2, 3, 4, 5, 6, 7, 8, 9], 5] [[call]] [[BIS_fnc_vectorDivide]];</code> |Example 2= | |x2= <code>[<nowiki/>[1, 2, 3, 4, 5, 6, 7, 8, 9], 5] [[call]] [[BIS_fnc_vectorDivide]];</code> |Example 2= | ||
| [[vectorMultiply]] [[BIS_fnc_vectorMultiply]] |See also= | | [[vectorMultiply]] [[BIS_fnc_vectorMultiply]] |See also= |
Revision as of 21:59, 26 June 2020
Description
- Description:
- Divides vector by scalar, by dividing all vector elements.
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- [vector, divider] call BIS_fnc_vectorDivide
- Parameters:
- vector: Array of Numbers - (Optional, default [0,0,0]) can be any array of numbers.
- divider: Number - (Optional, default 1)
- Return Value:
- Array of Numbers
Examples
- Example 1:
[[123, 456, 789], 5] call BIS_fnc_vectorDivide;
- Example 2:
[[1, 2, 3, 4, 5, 6, 7, 8, 9], 5] call BIS_fnc_vectorDivide;
Additional Information
- See also:
- vectorMultiply BIS_fnc_vectorMultiply
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