arcade-physics
Version:
Use Arcade Physics without Phaser.
16 lines • 796 B
TypeScript
export default GetLineToRectangle;
/**
* Checks for intersection between the Line and a Rectangle shape,
* and returns the intersection points as a Point object array.
*
* @function Phaser.Geom.Intersects.GetLineToRectangle
* @since 3.0.0
*
* @param {Phaser.Geom.Line} line - The Line to check for intersection.
* @param {(Phaser.Geom.Rectangle|object)} rect - The Rectangle to check for intersection.
* @param {array} [out] - An optional array in which to store the points of intersection.
*
* @return {array} An array with the points of intersection if objects intersect, otherwise an empty array.
*/
declare function GetLineToRectangle(line: Phaser.Geom.Line, rect: (Phaser.Geom.Rectangle | object), out?: any[] | undefined): any[];
//# sourceMappingURL=GetLineToRectangle.d.ts.map