BIS fnc vectorDivide

From Bohemia Interactive Community
Revision as of 21:58, 26 June 2020 by Lou Montana (talk | contribs) (Page filling)
Jump to navigation Jump to search

{{Function|Comments=

| arma3 |Game name=

|1.00|Game version=

| Divides vector by scalar, by dividing all vector elements.

vectorMultiply can be used instead as vector vectorMultiply 1/scale, but:

|Description=

| [vector, divider] call BIS_fnc_vectorDivide |Syntax=

|p1= vector: Array of Numbers - (Optional, default [0,0,0]) can be any array of numbers. |Parameter 1=

|p2= divider: Number - (Optional, default 1)

| Array of Numbers |Return value=

|x1= [[123, 456, 789], 5] call BIS_fnc_vectorDivide; |Example 1=

|x2= [[1, 2, 3, 4, 5, 6, 7, 8, 9], 5] call BIS_fnc_vectorDivide; |Example 2=

| vectorMultiply BIS_fnc_vectorMultiply |See also= }}