BIS fnc linearConversion: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
m (note & see also) |
||
Line 38: | Line 38: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| |= See also | | [[linearConversion]] |= See also | ||
}} | }} | ||
Line 45: | Line 45: | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
<dd class="notedate">Posted on Aug 1, 2014 - 23:39 | |||
<dt class="note">[[User:ffur2007slx2_5|ffur2007slx2_5]]<dd class="note"> | |||
(A3 0.50) It is recommended to use [[linearConversion]] instead of [[BIS_fnc_linearConversion]]: | |||
<code>[[linearConversion]] [0,100,50,0,50,true]; //same as [[0,100],50,[0,50]] [[call]] [[BIS_fnc_linearConversion]]</code> | |||
<!-- Note Section END --> | <!-- Note Section END --> | ||
</dl> | </dl> |
Revision as of 16:36, 1 August 2014
Description
- Description:
/* File: fn_linearConversion.sqf Description: Linear conversion of a value from one set to another. Parameter(s): _this select 0: Array (originalSet) Note: should be two elements [minimumValue, maximumValue] _this select 1: Scalar (originalValue) _this select 2: Array (newSet) Note: should be two elements [minimumValue, maximumValue] Returns: Scalar (newValue) */
(Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki)- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- Syntax needed
- Return Value:
- Return value needed
Examples
- Example 1:
Additional Information
- See also:
- linearConversion
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
- Posted on Aug 1, 2014 - 23:39
- ffur2007slx2_5
-
(A3 0.50) It is recommended to use linearConversion instead of BIS_fnc_linearConversion:
linearConversion [0,100,50,0,50,true]; //same as [[0,100],50,[0,50]] call BIS_fnc_linearConversion