centerOn(x, y) → {Phaser.Line}
Centers this Line on the given coordinates.
The line is centered by positioning the start and end points so that the lines midpoint matches
the coordinates given.
Parameters
Name | Type | Description |
---|---|---|
x | number | The x position to center the line on. |
y | number | The y position to center the line on. |
Returns
This line object
- Source code: geom/Line.js (Line 200)
Please login to continue.