How do you determine from points what type of triangle you have