region: add a free function region-region intersects

This commit is contained in:
Danny Robson 2021-02-01 09:43:56 +10:00
parent dd1e9bbbd7
commit d736ecf6e6

View File

@ -296,6 +296,16 @@ namespace cruft {
///////////////////////////////////////////////////////////////////////////
template <std::size_t S, typename T>
bool
intersects (
cruft::region<S,T> const &a,
cruft::region<S,T> const &b
) {
return a.intersects (b);
}
/// returns true if the supplied point lies within the supplied region
/// inclusive of borders.
template <size_t S, typename T>