linearConversion

From Bohemia Interactive Community
Revision as of 13:57, 4 March 2013 by DarkDruid (talk | contribs) (Created page with "{{Command|= Comments ____________________________________________________________________________________________ | arma3 |= Game name |0.50|= Game version ____________________...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Converts value in interval [min, max] to newMin + a*(max-min)/(newMax - newMin), potentially clamps the final value.
Groups:
Uncategorised

Syntax

Syntax:
linearConversion [min, max, value, newMin, newMax, clamp]
Parameters:
[min, max, value, newMin, newMax, clamp]: Object
min: Number
max: Number
value: Number
newMin: Number
newMax: Number
clamp: Boolean
Return Value:
Number

Examples

Example 1:
linearConversion [4, 8, 5, 0, 1, false]

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

Notes

Bottom Section