return whether an array of 3 points (in any dimension) describe a triangle