BIS fnc vectorDivide: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\{\{( *)Informative( *)\|" to "{{$1Feature$2|$2Informative$2|")
m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ :\\\-\/|()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
Line 5: Line 5:
* 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.}}| [vector, divider] call [[BIS_fnc_vectorDivide]]|p1= vector: [[Array]] of [[Number]]s - (Optional, default [0,0,0]) can be any array of numbers.|p2= divider: [[Number]] - (Optional, default 1)
* 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.}}| [vector, divider] call [[BIS_fnc_vectorDivide]]|p1= vector: [[Array]] of [[Number]]s - (Optional, default [0,0,0]) can be any array of numbers.|p2= divider: [[Number]] - (Optional, default 1)


| [[Array]] of [[Number]]s|x1= <code>[<nowiki/>[123, 456, 789], 5] [[call]] [[BIS_fnc_vectorDivide]];</code>|x2= <code>[<nowiki/>[1, 2, 3, 4, 5, 6, 7, 8, 9], 5] [[call]] [[BIS_fnc_vectorDivide]];</code>| [[vectorMultiply]] [[BIS_fnc_vectorMultiply]]
| [[Array]] of [[Number]]s|x1= <code>[<nowiki/>[123, 456, 789], 5] [[call]] [[BIS_fnc_vectorDivide]];</code>|x2= <code>[<nowiki/>[1, 2, 3, 4, 5, 6, 7, 8, 9], 5] [[call]] [[BIS_fnc_vectorDivide]];</code>|seealso= [[vectorMultiply]] [[BIS_fnc_vectorMultiply]]
}}
}}

Revision as of 00:36, 17 February 2021

Hover & click on the images for description

Description

Description:
Description needed
Execution:
call
Groups:
Vectors

Syntax

Syntax:
Syntax needed
Parameters:
vector: Array of Numbers - (Optional, default [0,0,0]) can be any array of numbers.
divider: Number - (Optional, default 1)
Return Value:
Return value needed

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;

Additional Information

See also:
vectorMultiply BIS_fnc_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