Polarith AI
1.8

◆ MapSpecial()

static float MapSpecial ( MappingType  mapping,
float  min,
float  max,
float  value 
)
staticinherited

Maps a value lying between min and max to a resulting value between 0 and 1.

The function used for the mapping is specified via the mapping parameter, see MappingType.

Parameters
mappingSpecifies the applied type of the mapping function.
minThe minimum of the function argument interval.
maxThe maximum of the function argument interval.
valueThe argument value to be mapped.
Returns
The mapped function value.
Imprint