Why is it that this formula works?
this formula finds the radius of the circumcircle of a triangle (or three points, combining it with pythagoras), using the lengths of the sides of the triangle.
I have tested the formula several times, and it seemed to be accurate everytime, but I still don't understand why that is.. could someone help me understand this? How does this result in the radius?
Code:
r=a*b*c/sqrt((a+b-c)(b+c-a)(c+a-b)(a+b+c))
I have tested the formula several times, and it seemed to be accurate everytime, but I still don't understand why that is.. could someone help me understand this? How does this result in the radius?