UNPKG

arcade-physics

Version:
16 lines 786 B
export default GetRectangleToTriangle; /** * Checks for intersection between Rectangle shape and Triangle shape, * and returns the intersection points as a Point object array. * * @function Phaser.Geom.Intersects.GetRectangleToTriangle * @since 3.0.0 * * @param {Phaser.Geom.Rectangle} rect - Rectangle object to test. * @param {Phaser.Geom.Triangle} triangle - Triangle object to test. * @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 GetRectangleToTriangle(rect: Phaser.Geom.Rectangle, triangle: Phaser.Geom.Triangle, out?: any[] | undefined): any[]; //# sourceMappingURL=GetRectangleToTriangle.d.ts.map