vectorMultiply: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(seealso)
(syntax change)
Line 11: Line 11:
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''vectorMultiply''' [vector,scalar] |= Syntax
| vector '''vectorMultiply''' scalar |= Syntax


|p1= [vector,scalar]: [[Array]] |= Parameter 1
|p1= vector: [[Array]] |= Parameter 1


|p2= vector: [[Array]] |= Parameter 2
|p2= scalar: [[Number]] |= Parameter 2
 
|p3= scalar: [[Number]] |= Parameter 3


| [[Array]] |= Return value
| [[Array]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>_newVector = vectorMultiply <nowiki>[[</nowiki>1,0,2],2]</code> |= Example 1
|x1= <code>_newVector = [1,2,3] [[vectorMultiply]] 3; //[3,6,9]</code> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 20:20, 10 June 2014

Hover & click on the images for description

Description

Description:
Multiplies 3D vector by a scalar.
Groups:
Uncategorised

Syntax

Syntax:
vector vectorMultiply scalar
Parameters:
vector: Array
scalar: Number
Return Value:
Array

Examples

Example 1:
_newVector = [1,2,3] vectorMultiply 3; //[3,6,9]

Additional Information

See also:
vectorAddvectorDiffvectorCrossProductvectorDotProductvectorCosvectorMagnitudevectorMagnitudeSqrvectorDistancevectorDistanceSqrvectorDirvectorUpsetVectorDirsetVectorUpsetVectorDirAndUp

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

Notes

Bottom Section