Copy the code snippet in the project to determine if a point is in a triangle.
I made the code as concise and fast as possible. It also adds only the in_tri var to your project!
Description
Click somewhere to check if you clicked inside or outside the triangle