Skip to main content

MAP

Linearly maps a value from the input range [from_low, from_high] to the output range [to_low, to_high]. Throws if from_low equals from_high.

CategoryEngineering
SyntaxMAP(value, from_low, from_high, to_low, to_high)

Parameters

ParameterRequiredDescription
valueRequiredThe value to map.
from_lowRequiredThe lower bound of the input range.
from_highRequiredThe upper bound of the input range.
to_lowRequiredThe lower bound of the output range.
to_highRequiredThe upper bound of the output range.

Example

MAP(value, from_low, from_high, to_low, to_high)

Auto-generated from the EngCanvas function registry.