Phaser API Documentation

  Version: 
<static> Equals(triangle, toCompare)

Description:

Returns true if two triangles have the same coordinates.

Parameters:

name type description
triangle Phaser.Geom.Triangle

The first triangle to check.

toCompare Phaser.Geom.Triangle

The second triangle to check.

Returns:
Description:

true if the two given triangles have the exact same coordinates, otherwise false.

Type:
  • boolean
Since: 3.0.0