VectorLerp( <from>, <to>, <fraction> )


Module: Vector

Summary:

Linear interpolates between two vectors.



Example:

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



Required Args:

  • 1 : <from> The vector whose value is used when fraction is 0
  • 2 : <to> The vector whose value is used when fraction is 1
  • 3 : <fraction> The fraction of the way between vectors. Values less than 0 or greater than 1 do linear extrapolation.