arcade-physics
Version:
Use Arcade Physics without Phaser.
17 lines • 896 B
TypeScript
export default GetTriangleToLine;
/**
* Checks if a Triangle and a Line intersect, and returns the intersection points as a Point object array.
*
* The Line intersects the Triangle if it starts inside of it, ends inside of it, or crosses any of the Triangle's sides. Thus, the Triangle is considered "solid".
*
* @function Phaser.Geom.Intersects.GetTriangleToLine
* @since 3.0.0
*
* @param {Phaser.Geom.Triangle} triangle - The Triangle to check with.
* @param {Phaser.Geom.Line} line - The Line to check with.
* @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 GetTriangleToLine(triangle: Phaser.Geom.Triangle, line: Phaser.Geom.Line, out?: any[] | undefined): any[];
//# sourceMappingURL=GetTriangleToLine.d.ts.map