Black Ops III

MapFloat

Returns a lerped value between <from> and <to> based on <time>. <time> is a value between <timeMin> and <timeMax>.

Example:

val = MapFloat( 1, 2, 0, 10, 1.5); // would return 5.0

Parameters

ParameterSummary
*timeMinFloating point value, min time value
*timeMaxFloating point value, max time value
*fromFloating point value, start of the result range
*toFloating point value, end of the result range
*timeFloating point value in the range from to

* = mandatory