Get a point on a line that's a given percentage along its length.
name | type | arguments | description |
---|---|---|---|
line | Phaser.Geom.Line |
The line. |
|
position | number |
A value between 0 and 1, where 0 is the start, 0.5 is the middle and 1 is the end of the line. |
|
out | object | Phaser.Geom.Point | <optional> |
An optional point, or point-like object, to store the coordinates of the point on the line. |
The point on the line.