Given segment lengths
              a, b, c       longest
Right c2       a2 + b2
Obtuse c2       a2 + b2
Acute c2       a2 + b2