Aşağıdaki fonksiyonu kullanabilirsiniz. fonksiyon üç noktası verilen çemberin çizileceği alan için rectangle dönüyo. bunu kullanarak çizebilirsiniz.

// Find a circle through the three points.
Rectangle FindCircle(Point a, Point b, Point c)
{
    Point center;
    float radius;

    float x1 = (b.X + a.X) / 2;
    float y1 = (b.Y + a.Y) / 2;
    float dy1 = b.X - a.X;
    float dx1 = -(b.Y - a.Y);

    
    float x2 = (c.X + b.X) / 2;
    float y2 = (c.Y + b.Y) / 2;
    float dy2 = c.X - b.X;
    float dx2 = -(c.Y - b.Y);

    
    float cx = (y1 * dx1 * dx2 + x2 * dx1 * dy2 - x1 * dy1 * dx2 - y2 * dx1 * dx2) / (dx1 * dy2 - dy1 * dx2);
    float cy = (cx - x1) * dy1 / dx1 + y1;
    center = new Point(cx, cy);

    float dx = cx - a.X;
    float dy = cy - a.Y;
    radius = (float)Math.Sqrt(dx * dx + dy * dy);
    return new Rectangle(new Point(center.X-radius,center.Y-radius),new Size(radius*2,radius*2));

}