Checks whether a given points lies within the triangle.
name | type | description |
---|---|---|
x | number |
The x coordinate of the point to check. |
y | number |
The y coordinate of the point to check. |
true
if the coordinate pair is within the triangle, otherwise false
.