Phaser API Documentation

  Version: 
setTo([x1], [y1], [x2], [y2])

Description:

Sets the start and end coordinates of this Line.

Parameters:

name type arguments description
x1 number <optional>

The horizontal position of the start of the line.

y1 number <optional>

The vertical position of the start of the line.

x2 number <optional>

The horizontal position of the end of the line.

y2 number <optional>

The vertical position of the end of the line.

Returns:
Description:

This Line object.

Since: 3.13.0