rotate(angle, asDegrees) → {Phaser.Line}
Rotates the line by the amount specified in angle
.
Rotation takes place from the center of the line.
If you wish to rotate around a different point see Line.rotateAround.
If you wish to rotate the ends of the Line then see Line.start.rotate or Line.end.rotate.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
angle | number | The angle in radians (unless asDegrees is true) to rotate the line by. | ||
asDegrees | boolean | <optional> | false | Is the given angle in radians (false) or degrees (true)? |
Returns
This line object
- Source code: geom/Line.js (Line 105)
Please login to continue.