Appearance
aninest / Vec2 / lerp
function lerp( v1, v2, time): Vec2
Performs a linear interpolation between two vectors by a time value.
• v1: Vec2
Vec2
The start vector.
• v2: Vec2
The end vector.
• time: number
number
The time value to interpolate by (should be between 0 and 1).
A new vector.
Utils/vec2.ts:223