judge whether the given triangle contains the given point