Determines what type of triangle it is.