Polarith AI
1.8

◆ MapSpecialSqr()

static float MapSpecialSqr ( MappingType  mapping,
float  sqrMin,
float  sqrMax,
float  sqrValue 
)
staticinherited

Maps a sqrValue lying between sqrMin and sqrMax to a resulting value between 0 and 1, whereby all the given parameters are expected to be squared.

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

Parameters
mappingSpecifies the applied type of the mapping function.
sqrMinThe squared minimum of the function argument interval.
sqrMaxThe squared maximum of the function argument interval.
sqrValueThe squared argument value to be mapped.
Returns
The mapped function value.
Imprint