Phaser API Documentation

  Version: 
<static> GetLineToCircle(line, circle, [out])

Description:

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

Parameters:

name type arguments description
line Phaser.Geom.Line

The line segment to check.

circle Phaser.Geom.Circle

The circle to check against the line.

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