Phaser API Documentation

  Version: 
<static> BetweenPointsSquared(a, b)

Description:

Calculate the squared distance between two points.

Parameters:

name type description
a Phaser.Types.Math.Vector2Like

The first point.

b Phaser.Types.Math.Vector2Like

The second point.

Returns:
Description:

The squared distance between the points.

Type:
  • number