| 227 | } |
| 228 | |
| 229 | float length(const sf::Vector2f &v) { |
| 230 | return std::sqrt(v.x * v.x + v.y * v.y); |
| 231 | } |
| 232 | |
| 233 | bool collided(const Candidate &left, const Candidate &right) { |
| 234 | return length(left.position - right.position) < left.radius + right.radius; |
nothing calls this directly
no outgoing calls
no test coverage detected