54 double xc = (fpar[0] + fpar[2]) / 2.;
55 double yc = (fpar[1] + fpar[3]) / 2.;
57 double p1 = (fpar[0] - fpar[2]) * (fpar[0] - fpar[2]) + (fpar[1] - fpar[3]) * (fpar[1] - fpar[3]);
59 ring->
SetXYABP(-1., -1., -1., -1., -1.);
64 double c =
sqrt(p1) / 2.;
65 double p2 = fpar[4] * fpar[4] - c * c;
67 ring->
SetXYABP(-1., -1., -1., -1., -1.);
73 double p3 = fpar[2] - fpar[0];
75 ring->
SetXYABP(-1., -1., -1., -1., -1.);
79 double k = (fpar[3] - fpar[1]) / (fpar[2] - fpar[0]);
82 ring->
SetXYABP(xc, yc, fpar[4], b, ang);