Phaser API Documentation

  Version: 

Member of: Phaser.Math.Vector4

equals(v)

Description:

Check whether this Vector is equal to a given Vector.

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

Parameters:

name type description
v Phaser.Math.Vector4

The vector to check equality with.

Returns:
Description:

A boolean indicating whether the two Vectors are equal or not.

Type:
  • boolean
Since: 3.0.0
Source: src/math/Vector4.js (Line 123)