Tests if a triangle contains a point.
name | type | description |
---|---|---|
triangle | Phaser.Geom.Triangle |
The triangle. |
point | any | Phaser.Geom.Point | Phaser.Math.Vector2 |
The point to test, or any point-like object with public |
true
if the point is within the triangle, otherwise false
.