BIS fnc vectorMultiply: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Feature arma3|" to "{{Feature|arma3|")
m (Some wiki formatting)
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|Comments=
{{RV|type=function
____________________________________________________________________________________________


| arma2 |Game name=
|game1= arma2
|version1= 1.00


|1.00|Game version=
|game2= arma2oa
|version2= 1.50


|gr1= Vectors |GROUP1=
|game3= tkoh
____________________________________________________________________________________________
|version3= 1.00


| Multiplies 3D vector by a scalar. {{Feature|arma3|Use [[vectorMultiply]] instead.}}|Description=
|game4= arma3
____________________________________________________________________________________________
|version4= 0.50


| [vector, factor] call [[BIS_fnc_vectorMultiply]] |Syntax=
|gr1= Vectors


|p1= vector: [[Array]] of [[Number|Numbers]] - to format [x,y,z] |Parameter 1=
|descr= Multiplies 3D vector by a scalar. {{Feature|arma3|Use [[vectorMultiply]] instead.}}


|p2= factor: [[Number]] |Parameter 2=
|s1= [vector, factor] call [[BIS_fnc_vectorMultiply]]


| [[Array]] of [[Number|Numbers]] - result vector |Return value=
|p1= vector: [[Array]] of [[Number]]s - to format [x,y,z]
____________________________________________________________________________________________


|x1= <code>_newVector = [<nowiki/>[1,2,3], 3] [[call]] [[BIS_fnc_vectorMultiply]]; {{codecomment|// returns [3,6,9]}}</code> |Example 1=
|p2= factor: [[Number]]
____________________________________________________________________________________________


| [[vectorMultiply]] [[BIS_fnc_vectorDivide]] |See also=
|r1= [[Array]] of [[Number]]s - result vector
}}


<h3 style="display:none">Notes</h3>
|x1= <sqf>private _newVector = [[1,2,3], 3] call BIS_fnc_vectorMultiply; // returns [3,6,9]</sqf>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|seealso= [[vectorMultiply]] [[BIS_fnc_vectorDivide]]
</dl>
}}
 
<h3 style="display:none">Bottom Section</h3>
[[Category:Functions|{{uc:vectorMultiply}}]]
 
[[Category:{{Name|arma2}}: Functions|{{uc:vectorMultiply}}]]
[[Category:{{Name|arma2oa}}: Functions|{{uc:vectorMultiply}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:vectorMultiply}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:vectorMultiply}}]]

Latest revision as of 14:15, 13 July 2022

Hover & click on the images for description

Description

Description:
Multiplies 3D vector by a scalar.
Arma 3
Use vectorMultiply instead.
Execution:
call
Groups:
Vectors

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:
private _newVector = [[1,2,3], 3] call BIS_fnc_vectorMultiply; // returns [3,6,9]

Additional Information

See also:
vectorMultiply BIS_fnc_vectorDivide

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