Checks for intersection between the line segment and circle.
Based on code by Matt DesLauriers.
name | type | arguments | description |
---|---|---|---|
line | Phaser.Geom.Line |
The line segment to check. |
|
circle | Phaser.Geom.Circle |
The circle to check against the line. |
|
nearest | any | Phaser.Geom.Point | <optional> |
An optional Point-like object. If given the closest point on the Line where the circle intersects will be stored in this object. |
true
if the two objects intersect, otherwise false
.