Phaser API Documentation

  Version: 

Member of: Phaser.Geom.Line

<static> Rotate(line, angle)

Description:

Rotate a line around its midpoint by the given angle in radians.

Parameters:

name type description
line Phaser.Geom.Line

The line to rotate.

angle number

The angle of rotation in radians.

Returns:
Description:

The rotated line.

Since: 3.0.0
Source: src/geom/line/Rotate.js (Line 9)