Phaser API Documentation

  Version: 
<static> GetCircleToRectangle(circle, rect, [out])

Description:

Checks for intersection between a circle and a rectangle, and returns the intersection points as a Point object array.

Parameters:

name type arguments description
circle Phaser.Geom.Circle

The circle to be checked.

rect Phaser.Geom.Rectangle

The rectangle to be checked.

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
Since: 3.0.0