Description
Divides vector by scalar, by dividing all vector elements.
Note
vectorMultiply can be used instead as
vector vectorMultiply 1/scale, but:
- scale cannot be 0
- in some rare cases, the result is not exactly the same as BIS_fnc_vectorDivide - this is due to Floating Point Number precision and rounding.
Syntax
[vector, divider] call BIS_fnc_vectorDivide
Parameters:
vector: Array of Numbers - (Optional, default [0,0,0]) can be any array of numbersdivider: Number - (Optional, default 1)
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;