BIS fnc magnitude: Difference between revisions
Jump to navigation
Jump to search
m (description) |
m (pf) |
||
Line 1: | Line 1: | ||
{{Function|Comments= | |||
{{Function|= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| arma2 | | | arma2 |Game name= | ||
|1.00| | |1.00|Game version= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | Returns the magnitude of an array of numbers. The vector can have any number of elements. {{Feature arma3|Use [[vectorMagnitude]] instead}}|Description= | ||
____________________________________________________________________________________________ | |||
| vector call [[BIS_fnc_magnitude]] |Syntax= | |||
|p1= vector: [[Array]] - Vector |Parameter 1= | |||
| | | [[Array]] - New vector |Return value= | ||
| | <!--- | ||
|exec= spawn |= Execution | |||
---> | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code></code> |= | |x1= <code>[5,3] [[call]] [[BIS_fnc_magnitude]];</code>|Example 1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[ | | [[BIS_fnc_crossProduct]], [[BIS_fnc_magnitudeSqr]], [[BIS_fnc_vectorFromXToY]] |See also= | ||
}} | }} | ||
Revision as of 13:19, 14 June 2018
Description
- Description:
- Returns the magnitude of an array of numbers. The vector can have any number of elements.
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- vector call BIS_fnc_magnitude
- Parameters:
- vector: Array - Vector
- Return Value:
- Array - New vector
Examples
- Example 1:
[5,3] call BIS_fnc_magnitude;
Additional Information
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