collision check 3 points