Check if mouse is inside polygon.