Solving for center of a circle for 3 given points

Hi,

I am wondering if there is a function in one of the ROOT libraries that solves for the the center of the circle that passes through 3 points (p1, p2, p3), which are given in Cartesian coordinates.

TMath library don’t seem to have it.

I know the equations to solve.

It would be great if the function already exists in ROOT libraries already (please let me know).

Thanks for reading this post.

May be the best would be that you implement it in a macro which you can then propose on this forum …