test the right cs function (oops)

This commit is contained in:
Bill Currie 2013-03-13 16:38:56 +09:00
parent 3193ffd9cc
commit 9bbf1a9110

View file

@ -56,7 +56,7 @@ main (int argc, const char **argv)
double start, end; double start, end;
for (i = 0; i < num_tests; i ++) { for (i = 0; i < num_tests; i ++) {
sphere = BoundingSphere (tests[i].points, tests[i].num_points); CircumSphere (tests[i].points, tests[i].num_points, &sphere);
if (VectorDistance_fast (sphere.center, tests[i].expect.center) > 1e-4 if (VectorDistance_fast (sphere.center, tests[i].expect.center) > 1e-4
|| fabs (sphere.radius - tests[i].expect.radius) > 1e-4) { || fabs (sphere.radius - tests[i].expect.radius) > 1e-4) {
res = 1; res = 1;