Phaser API Documentation

  Version: 

Member of: Phaser.Geom.Point

<static> GetMagnitudeSq(point)

Description:

Calculates the square of magnitude of given point.(Can be used for fast magnitude calculation of point)

Parameters:

name type description
point Phaser.Geom.Point

Returns square of the magnitude/length of given point.

Returns:
Description:

Returns square of the magnitude of given point.

Type:
  • number
Since: 3.0.0