Vector4.Lerp Manual     Reference     Scripting  
Scripting > Runtime Classes > Vector4

static function Lerp (from : Vector4, to : Vector4, t : float) : Vector4


Linearly interpolates between two vectors.

Interpolates from towards to by amount t.

t is clamped between [0...1]. When t = 0 returns from. When t = 1 returns to. When t = 0.5 returns the average of from and to.