geom/aabb: correct centre for order of operations...

This commit is contained in:
Danny Robson 2020-06-19 10:29:33 +10:00
parent 4b8947464b
commit 9590a006da

View File

@ -70,7 +70,7 @@ namespace cruft::geom {
{
point<S,T> 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;
}