Phaser API Documentation

  Version: 
<static> Contains(triangle, x, y)

Description:

Checks if a point (as a pair of coordinates) is inside a Triangle's bounds.

Parameters:

name type description
triangle Phaser.Geom.Triangle

The Triangle to check.

x number

The X coordinate of the point to check.

y number

The Y coordinate of the point to check.

Returns:
Description:

true if the point is inside the Triangle, otherwise false.

Type:
  • boolean
Since: 3.0.0