<static> interpolate(a, b, f, out) → {Phaser.Point}
Interpolates the two given Points, based on the f
value (between 0 and 1) and returns a new Point.
Parameters
Name | Type | Argument | Description |
---|---|---|---|
a | Phaser.Point | The first Point object. | |
b | Phaser.Point | The second Point object. | |
f | number | The level of interpolation between the two points. Indicates where the new point will be, along the line between pt1 and pt2. If f=1, pt1 is returned; if f=0, pt2 is returned. | |
out | Phaser.Point | <optional> | Optional Point to store the value in, if not supplied a new Point object will be created. |
Returns
The new Point object.
- Source code: geom/Point.js (Line 634)
Please login to continue.