arcade-physics
Version:
Use Arcade Physics without Phaser.
17 lines • 858 B
TypeScript
export default LineToCircle;
/**
* Checks for intersection between the line segment and circle.
*
* Based on code by [Matt DesLauriers](https://github.com/mattdesl/line-circle-collision/blob/master/LICENSE.md).
*
* @function Phaser.Geom.Intersects.LineToCircle
* @since 3.0.0
*
* @param {Phaser.Geom.Line} line - The line segment to check.
* @param {Phaser.Geom.Circle} circle - The circle to check against the line.
* @param {(Phaser.Geom.Point|any)} [nearest] - An optional Point-like object. If given the closest point on the Line where the circle intersects will be stored in this object.
*
* @return {boolean} `true` if the two objects intersect, otherwise `false`.
*/
declare function LineToCircle(line: Phaser.Geom.Line, circle: Phaser.Geom.Circle, nearest?: (Phaser.Geom.Point | any)): boolean;
//# sourceMappingURL=LineToCircle.d.ts.map