Смотреть видео: geometry - Circle-Rectangle collision detection (intersection) - Stack Overflow