| 949 | template <typename T, size_t N> |
| 950 | template <size_t P> |
| 951 | auto Box<T, N>::intersectsCircle(Coord const& position, T radius) const -> Enable2D<P, bool> { |
| 952 | if (contains(position)) |
| 953 | return true; |
| 954 | for (auto const& e : edges()) { |
| 955 | if (e.distanceTo(position) <= radius) |
| 956 | return true; |
| 957 | } |
| 958 | return false; |
| 959 | } |
| 960 | |
| 961 | // returns the closest intersection point (from l.min()) |
| 962 | template <typename T, size_t N> |
nothing calls this directly
no test coverage detected