Phaser API Documentation

  Version: 

Member of: Phaser.Math.Vector3

distanceSq(v)

Description:

Calculate the distance between this Vector and the given Vector, squared.

Parameters:

name type description
v Phaser.Math.Vector2 | Phaser.Math.Vector3

The Vector to calculate the distance to.

Returns:
Description:

The distance from this Vector to the given Vector, squared.

Type:
  • number
Since: 3.0.0
Source: src/math/Vector3.js (Line 500)