Phaser API Documentation

  Version: 
<static> GetCircleToCircle(circleA, circleB, [out])

Description:

Checks if two Circles intersect and returns the intersection points as a Point object array.

Parameters:

name type arguments description
circleA Phaser.Geom.Circle

The first Circle to check for intersection.

circleB Phaser.Geom.Circle

The second Circle to check for intersection.

out array <optional>

An optional array in which to store the points of intersection.

Returns:
Description:

An array with the points of intersection if objects intersect, otherwise an empty array.

Type:
  • array
Examples:
Since: 3.0.0