geom/ops: add variadic aabb calculation

This commit is contained in:
Danny Robson 2018-11-30 14:46:41 +11:00
parent ce3e3d83d3
commit 9ea44a5063

View File

@ -65,6 +65,14 @@ namespace cruft::geom {
bounds (K<S,T>);
/// Returns a bounding AABB for all supplied items
template <typename... Args>
auto
bounds (Args &&...args)
{
return (bounds (args) | ...);
}
/// Returns a maximum distance across a shape.
template <
size_t S,