arcade-physics
Version:
Use Arcade Physics without Phaser.
16 lines • 689 B
TypeScript
export default TriangleToLine;
/**
* Checks if a Triangle and a Line intersect.
*
* 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.TriangleToLine
* @since 3.0.0
*
* @param {Phaser.Geom.Triangle} triangle - The Triangle to check with.
* @param {Phaser.Geom.Line} line - The Line to check with.
*
* @return {boolean} `true` if the Triangle and the Line intersect, otherwise `false`.
*/
declare function TriangleToLine(triangle: Phaser.Geom.Triangle, line: Phaser.Geom.Line): boolean;
//# sourceMappingURL=TriangleToLine.d.ts.map