struct PT3 { double x, y, z; }; int solveCenterPointOfCircle(std::vector<PT3> pt, double centerpoint[]) { double a1, b1, c1, d1; double a2, b2, c2, d2; double a3, b3, c3, d3; ].x, y1 = pt[].y, z1 = pt[].z; ].x, y2 = pt[].y, z2 = pt[].z; ].x, y3 = pt…