Set a line to a given position, angle and length.
name | type | description |
---|---|---|
line | Phaser.Geom.Line |
The line to set. |
x | number |
The horizontal start position of the line. |
y | number |
The vertical start position of the line. |
angle | number |
The angle of the line in radians. |
length | number |
The length of the line. |
The updated line.