a^2=b^2+c^2-2*b*c*CosA
b^2=a^2+c^2-2*a*c*CosB
c^2=a^2+b^2-2*a*b*CosC
CosC=(a^2+b^2-c^2)/2ab
CosB=(a^2+c^2-b^2)/2ac
CosA=(c^2+b^2-a^2)/2bc
a^2=b^2+c^2-2*b*c*CosA
b^2=a^2+c^2-2*a*c*CosB
c^2=a^2+b^2-2*a*b*CosC
CosC=(a^2+b^2-c^2)/2ab
CosB=(a^2+c^2-b^2)/2ac
CosA=(c^2+b^2-a^2)/2bc