Починил, понял, что неверно работает функция

This commit is contained in:
AZEN-SGG 2024-12-21 01:05:32 +03:00
parent 610ed3990a
commit c14c8ef9c2
4 changed files with 64 additions and 70 deletions

View file

@ -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;
}