Maths is wrong for checking if click within triangle