format
typescript
Vector4.LerpUnclamped(lhs, rhs, t)class: Vector4
description
Performs a linear interpolation between two vectors and returns the interpolated result.
parameter
| param_name | type | description |
|---|---|---|
| lhs | Vector4 | The starting vector. |
| rhs | Vector4 | The ending vector. |
| t | number | The interpolation factor. |
return
| type | description |
|---|---|
Vector4 |
code example
typescript
let lhs = new Vector4(1, 2, 3, 4);
let rhs = new Vector4(3, 4, 5, 6);
let lerp_v4 = Vector4.LerpUnclamped(lhs, rhs, 0.5);