Skip to content

format

typescript
Vector3.LerpUnclamped(lhs, rhs, t)

class: Vector3

description

Performs a linear interpolation between vector lhs and vector rhs using parameter t.

There is no restriction on the value of t.

parameter

param_nametypedescription
lhsVector3The starting vector.
rhsVector3The ending vector.
tnumberThe interpolation coefficient, representing the proportion of interpolation between the start and end points.

return

typedescription
Vector3A new Vector3 object.

code example

typescript
let from = new Vector3(1,2,3);
let to = new Vector3(3,4,5);
Debug.Log("LerpUnclamped is",Vector3.LerpUnclamped(from,to,5));