Home > decentraland-ecs > Vector3 > Lerp
Returns a new Vector3 located for "amount" (float) on the linear interpolation between the vectors "start" and "end"
Signature:
static Lerp(start: ReadOnlyVector3, end: ReadOnlyVector3, amount: number): Vector3;
Returns: Vector3
the new Vector3
Parameter | Type | Description |
---|---|---|
start |
ReadOnlyVector3 |
defines the start value |
end |
ReadOnlyVector3 |
defines the end value |
amount |
number |
max defines amount between both (between 0 and 1) |