Geometry-Algorithms/Circle from 3 points.cpp
Circle circleFrom3Points(const Point A, const Point B, const Point C)
{
    Line AB = perpendicularBisector(A, B);
    Line BC = perpendicularBisector(B, C);

    Point center = lineToLineIntersection(AB, BC);
    double radius = dist(center, B);

    return {center, radius};
}
/// A,B,C are given in either counter-clockwise or clockwise order
/// A,B,C are not collinear (if they are the circle is not unique)
A,B,C are given in either counter-clockwise or clockwise order
A,B,C are not collinear (if they are the circle is not unique)
A B C are given in either counter - clockwise or clockwise order A B C are not collinear ( if they are the circle is not unique )
Circle circleFrom3Points(const Point A, const Point B, const Point C)
{
    Line AB = perpendicularBisector(A, B);
    Line BC = perpendicularBisector(B, C);
    Point center = lineToLineIntersection(AB, BC);
    double radius = dist(center, B);
    return {center, radius};
}
Circle circleFrom3Points ( const Point A , const Point B , const Point C ) { Line AB = perpendicularBisector ( A , B ) ; Line BC = perpendicularBisector ( B , C ) ; Point center = lineToLineIntersection ( AB , BC ) ; double radius = dist ( center , B ) ; return { center , radius } ; }
A,B,C are given in either counter-clockwise or clockwise order
A,B,C are not collinear (if they are the circle is not unique)
A B C are given in either counter - clockwise or clockwise order A B C are not collinear ( if they are the circle is not unique )