I'm facing a problem. We have lengths of 3 segments. How to see if the triangle built of our 3 segments has a specific angle, for example
The law of cosines says that $$c^2=a^2+b^2-2ab\cos\gamma.$$ Thus $\gamma=60^\circ$ iff $$c^2=a^2+b^2-ab$$ (or with the sides permuted for the other angles).
To find each specific angle, use the law of cosines:
$$c^2 = a^2 + b^2 - 2ab \cos C$$
Where $a, b, c$ are side lengths and $A, B, C$ are the angles opposite their corresponding sides.