Returns the linear interpolation point between the two given points, based on t
.
name | type | arguments | description |
---|---|---|---|
pointA | Phaser.Geom.Point |
The starting |
|
pointB | Phaser.Geom.Point |
The target |
|
t | number | <optional> |
The amount to interpolate between the two points. Generally, a value between 0 (returns the starting |
out | object | Phaser.Geom.Point | <optional> |
An optional |
Either the object from the out
argument with the properties x
and y
set to the result of the interpolation or a newly created Point
object.