Phaser API Documentation

  Version: 

Member of: Phaser.Math.Vector2

angle()

Description:

Calculate the angle between this Vector and the positive x-axis, in radians.

Returns:
Description:

The angle between this Vector, and the positive x-axis, given in radians.

Type:
  • number
Since: 3.0.0
Source: src/math/Vector2.js (Line 207)