Line#setTo()

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)
doc_phaser
2017-02-14 10:54:05
Comments
Leave a Comment

Please login to continue.