fromAngle(x, y, angle, length) → {Phaser.Line}
Sets this line to start at the given x
and y
coordinates and for the segment to extend at angle
for the given length
.
Parameters
Name | Type | Description |
---|---|---|
x | number | The x coordinate of the start of the line. |
y | number | The y coordinate of the start of the line. |
angle | number | The angle of the line in radians. |
length | number | The length of the line in pixels. |
Returns
This line object
- Source code: geom/Line.js (Line 86)
Please login to continue.