In any right-angled triangle,
cos θ = where 0o < θ < 90o
In any triangle ABC,
c2 = a2 + b2 - 2ab cos C