Black Ops III

VectorLerp

Linear interpolates between two vectors.

Example:

color = VectorLerp(oldColor, newColor, timeElapsed / timeTotal)

Parameters

ParameterSummary
*fromThe vector whose value is used when fraction is 0
*toThe vector whose value is used when fraction is 1
*fractionThe fraction of the way between vectors. Values less than 0 or greater than 1 do linear extrapolation.

* = mandatory