The CIR_3PNT procedure returns the radius and center of a circle, given 3 points on the circle. This is analogous to finding the circumradius and circumcircle of a triangle; the center of the circumcircle is the point at which the three perpendicular bisectors of the triangle formed by the points meet.
This routine is written in the IDL language. Its source code can be found in the file
cir_3pnt.pro
in the
lib
subdirectory of the IDL distribution.
A named variable that will contain the radius of the circle. The procedure returns 0.0 if the points are co-linear.