From 9ea44a5063c5fd2dd8770d66f704fcfeda65f0dc Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Fri, 30 Nov 2018 14:46:41 +1100 Subject: [PATCH] geom/ops: add variadic aabb calculation --- geom/ops.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/geom/ops.hpp b/geom/ops.hpp index 32b39293..1b3a037c 100644 --- a/geom/ops.hpp +++ b/geom/ops.hpp @@ -65,6 +65,14 @@ namespace cruft::geom { bounds (K); + /// Returns a bounding AABB for all supplied items + template + auto + bounds (Args &&...args) + { + return (bounds (args) | ...); + } + /// Returns a maximum distance across a shape. template < size_t S,