Skip to content

format

typescript
Vector2.LerpUnclamped(lhs, rhs, t)

class: Vector2

description

Performs a linear interpolation between two vectors and returns the interpolated result.

parameter

param_nametypedescription
lhsVector2The starting vector.
rhsVector2The ending vector.
tnumberThe interpolation factor.

return

typedescription
Vector2

code example

typescript
let lhs = new Vector2(1, 2);
let rhs = new Vector2(3, 4);
let Lerp_v2 = Vector2.LerpUnclamped(lhs, rhs, 0.5);