the rest of the file validator
This commit is contained in:
parent
eb1c2ab048
commit
726128e925
2 changed files with 40 additions and 6 deletions
|
|
@ -911,15 +911,15 @@
|
|||
let ra = a[i];
|
||||
let rb = b[i];
|
||||
// test circularity
|
||||
if (Math.abs(ra.c - rb.c) > 0.0005) {
|
||||
if (Math.abs(ra.c - rb.c) > 0.001) {
|
||||
return false;
|
||||
}
|
||||
// test perimeter
|
||||
if (Math.abs(ra.p - rb.p) > 0.001) {
|
||||
if (Math.abs(ra.p - rb.p) > 0.01) {
|
||||
return false;
|
||||
}
|
||||
// test bounds
|
||||
if (ra.b.delta(rb.b) > 0.001) {
|
||||
if (ra.b.delta(rb.b) > 0.01) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue