BIS fnc unitVector: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (Some wiki formatting)
 
(22 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma2
____________________________________________________________________________________________
|version1= 1.00


| arma2 |= Game name
|game2= arma2oa
|version2= 1.50


|1.00|= Game version
|game3= tkoh
____________________________________________________________________________________________
|version3= 1.00


| <pre>
|game4= arma3
|version4= 0.50
 
|gr1= Vectors
 
|descr= <pre>
/************************************************************
/************************************************************
Unit Vector
Unit Vector
Line 16: Line 23:
This does not modify the original array.
This does not modify the original array.
The array can have any number of elements (2, 3, etc).
The array can have any number of elements (2, 3, etc).
************************************************************/
************************************************************/</pre>
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |DESCRIPTION=
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_unitVector]]; --> |SYNTAX=
{{Wiki|placeholder}}


|p1= |PARAMETER1=
|s1= <!-- [] call [[BIS_fnc_unitVector]]; -->


| |RETURNVALUE=
|p1=
____________________________________________________________________________________________


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


| |SEEALSO=
|x1=


|seealso=
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Vectors|{{uc:unitVector}}]]
[[Category:Functions|{{uc:unitVector}}]]
[[Category:{{Name|arma2}}: Functions|{{uc:unitVector}}]]
[[Category:{{Name|arma2oa}}: Functions|{{uc:unitVector}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:unitVector}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:unitVector}}]]

Latest revision as of 09:22, 14 June 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

Examples:
Example needed

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