vector.lerp

Edit

Returns an interpolated vector between two vectors.

v = vector.lerp(a, b, t)

Arguments

NameTypeDescription
avector The first vector.
bvector The second vector.
tnumber The interpolation parameter. 0.0 returns a, 1.0 returns b, 0.5 returns a vector halfway between a and b, etc.

Returns

NameTypeDescription
vvector The interpolated vector.

See also