Починил, понял, что неверно работает функция
This commit is contained in:
parent
610ed3990a
commit
c14c8ef9c2
4 changed files with 64 additions and 70 deletions
|
@ -14,7 +14,7 @@ circle MEC(point * I, int ilen, point * N, int nlen) {
|
|||
}
|
||||
|
||||
bool belongs(circle crcl, point p) {
|
||||
if (powd(p.x - crcl.center.x) + powd(p.y - crcl.center.y) - powd(crcl.radius) <= exp) return true;
|
||||
if (powd(p.x - crcl.center.x) + powd(p.y - crcl.center.y) <= exp + powd(crcl.radius)) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue