Phaser API Documentation

  Version: 
<static> TriangleToCircle(triangle, circle)

Description:

Checks if a Triangle and a Circle intersect.

A Circle intersects a Triangle if its center is located within it or if any of the Triangle's sides intersect the Circle. As such, the Triangle and the Circle are considered "solid" for the intersection.

Parameters:

name type description
triangle Phaser.Geom.Triangle

The Triangle to check for intersection.

circle Phaser.Geom.Circle

The Circle to check for intersection.

Returns:
Description:

true if the Triangle and the Circle intersect, otherwise false.

Type:
  • boolean
Examples:
Since: 3.0.0