Center a line on the given coordinates.
name | type | description |
---|---|---|
line | Phaser.Geom.Line |
The line to center. |
x | number |
The horizontal coordinate to center the line on. |
y | number |
The vertical coordinate to center the line on. |
The centered line.