Home > decentraland-ecs > Size > Lerp
Creates a new Size set at the linear interpolation "amount" between "start" and "end"
Signature:
static Lerp(start: Size, end: Size, amount: number): Size;
Returns: Size
a new Size set at the linear interpolation "amount" between "start" and "end"
Parameter | Type | Description |
---|---|---|
start |
Size |
starting size to lerp between |
end |
Size |
end size to lerp between |
amount |
number |
amount to lerp between the start and end values |