From 9590a006da90282c51be5c0acb5736e48b2ca093 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Fri, 19 Jun 2020 10:29:33 +1000 Subject: [PATCH] geom/aabb: correct `centre` for order of operations... --- geom/aabb.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geom/aabb.hpp b/geom/aabb.hpp index b37ca6ab..40671808 100644 --- a/geom/aabb.hpp +++ b/geom/aabb.hpp @@ -70,7 +70,7 @@ namespace cruft::geom { { point res; for (std::size_t i = 0; i < S; ++i) - res[i] = (lo[i] + hi[i] / 2); + res[i] = (lo[i] + hi[i]) / 2; return res; }