This commit is contained in:
Marc Glisse 2019-04-16 11:43:10 +02:00
parent 8dd18734b1
commit 92f4a7d3ad
1 changed files with 1 additions and 0 deletions

View File

@ -437,6 +437,7 @@ void test2i(){
assert(!ed(psp0,psp1)); assert(!ed(psp0,psp1));
assert(!ed(psp0,psp2)); assert(!ed(psp0,psp2));
assert(!ed(psp2,psp1)); assert(!ed(psp2,psp1));
using std::abs;
assert(abs(sd(cent0,psp0)-25)<.0001); assert(abs(sd(cent0,psp0)-25)<.0001);
assert(abs(sd(cent0,psp1)-25)<.0001); assert(abs(sd(cent0,psp1)-25)<.0001);
assert(abs(sd(cent0,psp2)-25)<.0001); assert(abs(sd(cent0,psp2)-25)<.0001);