Question: the coordinates of the center circumscribed circle of a triangle

I wrote a program to find the coordinates of thecenter circle circumscribed triangle ABC to knowthe coordinates of its vertices. For example 

restart;with(geom3d);

point(A,4,-1,-2);

point(B,0,2,3);

point(C,2,0,1);

point(M,a,b,c);

Equation(plane(ABC,[A,B,C],[a,b,c]));

pt1:=distance(A,M) = distance(B,M);

pt2:=distance(A,M) = distance(C,M);

pt3:= Equation(ABC);

hpt:=solve([pt1,pt2,pt3],[a,b,c]);

subs(hpt[1],coordinates(M));

Please comment about my method. Thank you very much.


Please Wait...