Learning to classify a triangle given three points