BIS fnc vectorMultiply: Difference between revisions
Jump to navigation
Jump to search
m (description) |
Lou Montana (talk | contribs) (Page filling) |
||
Line 1: | Line 1: | ||
{{Function|Comments= | |||
{{Function|= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| arma2 | | | arma2 |Game name= | ||
|1.00| | |1.00|Game version= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | Multiplies 3D vector by a scalar. {{Feature arma3|Use [[vectorMultiply]] instead.}}|Description= | ||
____________________________________________________________________________________________ | |||
| [vector, factor] call [[BIS_fnc_vectorMultiply]] |Syntax= | |||
|p1= vector: [[Array]] of [[Number|Numbers]] - to format [x,y,z] |Parameter 1= | |||
|p2= factor: [[Number]] |Parameter 2= | |||
| [[Array]] of [[Number|Numbers]] - result vector |Return value= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| < | |x1= <code>_newVector = <nowiki>[</nowiki>[1,2,3], 3] [[call]] [[BIS_fnc_vectorMultiply]]; {{codecomment|// returns [3,6,9]}}</code> |Example 1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[vectorMultiply]] |See also= | |||
| [[vectorMultiply]] | | |||
}} | }} | ||
Line 51: | Line 33: | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category:Functions|{{uc:vectorMultiply}}]] | |||
[[Category:Function Group: Vectors|{{uc:vectorMultiply}}]] | [[Category:Function Group: Vectors|{{uc:vectorMultiply}}]] | ||
[[Category:{{Name|arma2}}: Functions|{{uc:vectorMultiply}}]] | [[Category:{{Name|arma2}}: Functions|{{uc:vectorMultiply}}]] | ||
[[Category:{{Name|arma2oa}}: Functions|{{uc:vectorMultiply}}]] | [[Category:{{Name|arma2oa}}: Functions|{{uc:vectorMultiply}}]] | ||
[[Category:{{Name|tkoh}}: Functions|{{uc:vectorMultiply}}]] | [[Category:{{Name|tkoh}}: Functions|{{uc:vectorMultiply}}]] | ||
[[Category:{{Name|arma3}}: Functions|{{uc:vectorMultiply}}]] | [[Category:{{Name|arma3}}: Functions|{{uc:vectorMultiply}}]] |
Revision as of 13:42, 4 June 2018
Description
- Description:
- Multiplies 3D vector by a scalar.
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- [vector, factor] call BIS_fnc_vectorMultiply
- Parameters:
- vector: Array of Numbers - to format [x,y,z]
- factor: Number
- Return Value:
- Array of Numbers - result vector
Examples
- Example 1:
_newVector = [[1,2,3], 3] call BIS_fnc_vectorMultiply; // returns [3,6,9]
Additional Information
- See also:
- 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