setTo(x1, y1, x2, y2) → {Phaser.Line}
Sets the components of the Line to the specified values.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
x1 | number | <optional> | 0 | The x coordinate of the start of the line. |
y1 | number | <optional> | 0 | The y coordinate of the start of the line. |
x2 | number | <optional> | 0 | The x coordinate of the end of the line. |
y2 | number | <optional> | 0 | The y coordinate of the end of the line. |
Returns
This line object
- Source code: geom/Line.js (Line 44)
Please login to continue.