phaser - v4.0.0-rc.4
    Preparing search index...
    • Checks for intersection between the line segment and circle.

      Based on code by Matt DesLauriers.

      Parameters

      • line: Geom.Line

        The line segment to check.

      • circle: Circle

        The circle to check against the line.

      • Optionalnearest: Math.Vector2

        An optional Vector2 object. If given the closest point on the Line where the circle intersects will be stored in this object.

      Returns boolean