I have a triangle that I know the lengths of all the sides. But I need to know the angles. Needs to work with non-right triangles as well.

I know it is possible, and I could have easily done this years ago when I was in trig, but it has completely slipped my mind.

I'd prefer a solution that I can code into a function, or something that does not require constructing right triangles from it.

I know it is possible, and I could have easily done this years ago when I was in trig, but it has completely slipped my mind.

I'd prefer a solution that I can code into a function, or something that does not require constructing right triangles from it.