Курсовая работа: Разбиение Делоне
if (XY == 0)
{
x4 = double.NaN;
y4 = double.NaN;
r4 = double.NaN;
x5 = double.NaN;
y5 = double.NaN;
r5 = double.NaN;
return;
}
double z21 = (x21 * x21 + y21 * y21 - r21 * r21) / 2;
double z31 = (x31 * x31 + y31 * y31 - r31 * r31) / 2;
double Ax = y21 * r31 - y31 * r21;
double Ay = -(x21 * r31 - x31 * r21);
double Bx = -(y21 * z31 - y31 * z21);
double By = x21 * z31 - x31 * z21;
double A = Ax * Ax + Ay * Ay - XY * XY;
double B = Ax * Bx + Ay * By;
double C = Bx * Bx + By * By;
double D = B * B - A * C;
if (D < 0)
{
x4 = double.NaN;
y4 = double.NaN;
r4 = double.NaN;
x5 = double.NaN;
y5 = double.NaN;
r5 = double.NaN;
return;