Line#rotateAround()

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)
doc_phaser
2017-02-14 10:54:04
Comments
Leave a Comment

Please login to continue.