BIS fnc linearConversion: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "{{Feature arma3|" to "{{Feature|arma3|") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| arma2oa |Game name= | | arma2oa |Game name= | ||
Line 7: | Line 6: | ||
|gr1 = Math |GROUP1= | |gr1 = Math |GROUP1= | ||
| | | | ||
Line 13: | Line 11: | ||
{{Feature|arma3|This function became obsolete with the introduction of [[linearConversion]]}} | {{Feature|arma3|This function became obsolete with the introduction of [[linearConversion]]}} | ||
|DESCRIPTION= | |DESCRIPTION= | ||
| <!-- [] call [[BIS_fnc_linearConversion]]; --> |SYNTAX= | | <!-- [] call [[BIS_fnc_linearConversion]]; --> |SYNTAX= | ||
Line 21: | Line 18: | ||
|p3= [[Array]] - [minimumValue,maximumValue] (newSet)|PARAMETER3= | |p3= [[Array]] - [minimumValue,maximumValue] (newSet)|PARAMETER3= | ||
|[[Scalar]] (newValue) |RETURNVALUE= | |[[Scalar]] (newValue) |RETURNVALUE= | ||
|x1= <code></code> |EXAMPLE1= | |x1= <code></code> |EXAMPLE1= | ||
| [[linearConversion]] |SEEALSO= | | [[linearConversion]] |SEEALSO= |
Revision as of 23:30, 16 January 2021
Description
Syntax
- Syntax:
- Syntax needed
- Parameters:
- Array - [minimumValue,maximumValue] (originalSet)
- Scalar - (originalValue)
- Array - [minimumValue,maximumValue] (newSet)
- Return Value:
- Scalar (newValue)
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