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".
name | type | description |
---|---|---|
triangle | Phaser.Geom.Triangle |
The Triangle to check with. |
line | Phaser.Geom.Line |
The Line to check with. |
true
if the Triangle and the Line intersect, otherwise false
.