Phaser API Documentation

  Version: 

Member of: Phaser.Geom.Line

<static> RotateAroundPoint(line, point, angle)

Description:

Rotate a line around a point by the given angle in radians.

Parameters:

name type description
line Phaser.Geom.Line

The line to rotate.

point object | Phaser.Geom.Point

The point to rotate the line around.

angle number

The angle of rotation in radians.

Returns:
Description:

The rotated line.

Since: 3.0.0