public static void Check_pq_Distances() { double dist = Geometry2D.GetNormalizedCircumRadius(4, 5); double offset = (1 - dist) / 4; for (int i = 1; i <= 3; i++) { double test = dist + i * offset; double min = double.MaxValue; int found = -1; for (int q = 6; q < 10000; q++) { double compare = Geometry2D.GetNormalizedCircumRadius(4, q); double diff = Math.Abs(compare - test); if (diff < min) { min = diff; found = q; } } System.Diagnostics.Trace.WriteLine(string.Format("{0}:{1}:{2}", i, found, min)); } }