BIS fnc linearConversion: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<dl class="command_description"> <dd class="notedate">" to "<dl class="command_description"> <dt></dt> <dd class="notedate">")
m (Some wiki formatting)
Line 1: Line 1:
{{RV|type=function
{{RV|type=function


| arma2oa
|game1= arma2oa
|version1= 1.50


|1.50
|game2= tkoh
|version2= 1.00
 
|game3= arma3
|version3= 0.50


|gr1= Math
|gr1= Math


|
|descr= Linear conversion of a value from one set to another
Linear conversion of a value from one set to another
{{Feature|arma3|This function became obsolete with the introduction of [[linearConversion]]}}
{{Feature|arma3|This function became obsolete with the introduction of [[linearConversion]]}}


Line 14: Line 18:


|p1= [[Array]] - [minimumValue,maximumValue] (originalSet)
|p1= [[Array]] - [minimumValue,maximumValue] (originalSet)
|p2= [[Scalar]] - (originalValue)
|p2= [[Scalar]] - (originalValue)
|p3= [[Array]] - [minimumValue,maximumValue] (newSet)
|p3= [[Array]] - [minimumValue,maximumValue] (newSet)
|[[Scalar]] (newValue)
 
|r1= [[Scalar]] (newValue)


|x1=
|x1=
Line 30: Line 37:
<code>[[linearConversion]] [0,100,50,0,50,true]; //same as [[0,100],50,[0,50]] [[call]] [[BIS_fnc_linearConversion]]</code>
<code>[[linearConversion]] [0,100,50,0,50,true]; //same as [[0,100],50,[0,50]] [[call]] [[BIS_fnc_linearConversion]]</code>
</dl>
</dl>
[[Category:{{Name|arma2oa}}: Functions|{{uc:linearConversion}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:linearConversion}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:linearConversion}}]]

Revision as of 18:10, 10 June 2021

Hover & click on the images for description

Description

Description:
Linear conversion of a value from one set to another
Arma 3
This function became obsolete with the introduction of linearConversion
Execution:
call
Groups:
Math

Syntax

Syntax:
Syntax needed
Parameters:
Array - [minimumValue,maximumValue] (originalSet)
Scalar - (originalValue)
Array - [minimumValue,maximumValue] (newSet)
Return Value:
Scalar (newValue)

Examples

Examples:
Example needed

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
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