Phaser API Documentation

  Version: 

Member of: Phaser.Geom.Line

<static> SetToAngle(line, x, y, angle, length)

Description:

Set a line to a given position, angle and length.

Parameters:

name type description
line Phaser.Geom.Line

The line to set.

x number

The horizontal start position of the line.

y number

The vertical start position of the line.

angle number

The angle of the line in radians.

length number

The length of the line.

Returns:
Description:

The updated line.

Since: 3.0.0