Phaser API Documentation

  Version: 

Member of: Phaser.Math.Vector2

equals(v)

Description:

Check whether this Vector is equal to a given Vector.

Performs a strict equality check against each Vector's components.

Parameters:

name type description
v Phaser.Types.Math.Vector2Like

The vector to compare with this Vector.

Returns:
Description:

Whether the given Vector is equal to this Vector.

Type:
  • boolean
Since: 3.0.0
Source: src/math/Vector2.js (Line 174)