BIS fnc crossProduct: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Feature arma3|" to "{{Feature|arma3|")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Function|Comments=
{{Function|Comments=
____________________________________________________________________________________________


| arma2 |Game name=
| arma2 |Game name=
Line 7: Line 6:


|gr1 = Vectors |GROUP1=
|gr1 = Vectors |GROUP1=
____________________________________________________________________________________________


| Return the cross product of two 3D vectors. {{Feature|arma3|Use [[vectorCrossProduct]] instead.}}|Description=
| Return the cross product of two 3D vectors. {{Feature|arma3|Use [[vectorCrossProduct]] instead.}}|Description=
____________________________________________________________________________________________


| [vector1, vector2] call [[BIS_fnc_crossProduct]] |Syntax=
| [vector1, vector2] call [[BIS_fnc_crossProduct]] |Syntax=
Line 19: Line 16:


| [[Array]] |Return value=
| [[Array]] |Return value=
____________________________________________________________________________________________


|x1= <code>_product = [<nowiki/>[1,2,3], [3,2,1]] [[call]] [[BIS_fnc_crossProduct]];</code> |Example 1=
|x1= <code>_product = [<nowiki/>[1,2,3], [3,2,1]] [[call]] [[BIS_fnc_crossProduct]];</code> |Example 1=
____________________________________________________________________________________________


| [[vectorCrossProduct]] |See also=
| [[vectorCrossProduct]] |See also=

Revision as of 22:39, 16 January 2021

Hover & click on the images for description

Description

Description:
Return the cross product of two 3D vectors.
Arma 3
Use vectorCrossProduct instead.
Execution:
call
Groups:
Vectors

Syntax

Syntax:
[vector1, vector2] call BIS_fnc_crossProduct
Parameters:
vector1: Array
vector2: Array
Return Value:
Array

Examples

Example 1:
_product = [[1,2,3], [3,2,1]] call BIS_fnc_crossProduct;

Additional Information

See also:
vectorCrossProduct

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