BIS fnc unitVector: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:


{{Function|Comments=
{{Function|Comments=
____________________________________________________________________________________________


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


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


| <pre>
| <pre>
Line 20: Line 18:
************************************************************/
************************************************************/
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |DESCRIPTION=
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |DESCRIPTION=
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_unitVector]]; --> |SYNTAX=
| <!-- [] call [[BIS_fnc_unitVector]]; --> |SYNTAX=
Line 27: Line 24:


| |RETURNVALUE=
| |RETURNVALUE=
____________________________________________________________________________________________


|x1= <code></code> |=  
|x1= <code></code> |=  
____________________________________________________________________________________________


| |SEEALSO=
| |SEEALSO=

Revision as of 00:04, 17 January 2021


Hover & click on the images for description

Description

Description:
/************************************************************
	Unit Vector

Returns the unit vector for the passed vector (vector pointing
in the same direction, but with magnitude == 1)
This does not modify the original array.
The array can have any number of elements (2, 3, etc).
************************************************************/
(Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki)
Execution:
call
Groups:
Vectors

Syntax

Syntax:
Syntax needed
Return Value:
Return value needed

Examples

Example 1:

Additional Information

See also:
See also needed

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