Phaser API Documentation

  Version: 

Member of: Phaser.Geom.Point

<static> GetMagnitude(point)

Description:

Calculate the magnitude of the point, which equivalent to the length of the line from the origin to this point.

Parameters:

name type description
point Phaser.Geom.Point

The point to calculate the magnitude for

Returns:
Description:

The resulting magnitude

Type:
  • number
Since: 3.0.0