rotateAround(x, y, angle, asDegrees) → {Phaser.Line}
Rotates the line by the amount specified in angle
.
Rotation takes place around the coordinates given.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
x | number | The x coordinate to offset the rotation from. | ||
y | number | The y coordinate to offset the rotation from. | ||
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 130)
Please login to continue.