nanos world API Reference Unofficial documentation
Function Shared Bleeding edge only

Vector2D.Lerp

Returns the linear interpolation between this vector and another vector by the given alpha

Syntax

Lua
my_vector2_d:Lerp(other, alpha)

Parameters

Name Type Default Description
other Vector2D The vector to interpolate to
alpha number The interpolation alpha, where 0 returns this vector and 1 returns the other vector

Returns