Checks if the mouse is inside the triangle using ✨math✨
For my 3D project. Thought I should share this it might be helpful.