linearConversion [min, max, value, newMin, newMax, clamp]

Operand types

[min, max, value, newMin, newMax, clamp] : Array

Type of returned value

Description

Converts value in interval [min, max] to newMin + a * (max - min) / (newMax - newMin)

Potentially clamps the final value (true/false).

Used In

Arma3

Example

linearConversion [1,10,2,2,20,false];
// result is 4
Search OFPEC COMREF