Phaser API Documentation

  Version: 

Member of: Phaser.Math.Vector2

rotate(delta)

Description:

Rotate this Vector by an angle amount.

Parameters:

name type description
delta number

The angle to rotate by, in radians.

Returns:
Description:

This Vector2.

Since: 3.23.0
Source: src/math/Vector2.js (Line 678)