Re: Fitting a circle [message #12002] |
Fri, 19 June 1998 00:00 |
mallors
Messages: 76 Registered: November 1997
|
Member |
|
|
In article <6mdgei$1r$2@gwdu19.gwdg.de>,
pit@gollum.uni-sw.gwdg.de (Peter Suetterlin) writes:
> Hi,
>
> does anyone know about an IDL routine for fitting a circle or an arc,
> i.e. given a set of (x,y) values, determine center (X,Y) and radius R?
>
> Thanks,
You might try the CIR_3PNT routine:
"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."
--
Robert S. Mallozzi
http://cspar.uah.edu/~mallozzir/
|
|
|