Construction line

Construction line

Hello,
Would it be possible to have a clear description concerning the construction of a line passing through several circles.
I use this function to determine the straightness of an axis with the orientation plane chosen on "3D" in general, but I have a doubt that the calculation is what I think.