format
typescript
Vector2.LerpUnclamped(lhs, rhs, t)class: Vector2
description
Performs a linear interpolation between two vectors and returns the interpolated result.
parameter
| param_name | type | description |
|---|---|---|
| lhs | Vector2 | The starting vector. |
| rhs | Vector2 | The ending vector. |
| t | number | The interpolation factor. |
return
| type | description |
|---|---|
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);