]> git.tdb.fi Git - libs/math.git/blobdiff - source/geometry/transformedshape.h
Some bounding box logic fixes
[libs/math.git] / source / geometry / transformedshape.h
index 74912aa0b904cf1786c2efb7d78f6ec37c56d6d7..84e182c6cdd5d588245c26fc7e6387ad8829b66c 100644 (file)
@@ -91,7 +91,7 @@ inline BoundingBox<T, D> TransformedShape<T, D>::get_axis_aligned_bounding_box()
                for(unsigned j=0; j<D; ++j)
                {
                        min_pt[j] = std::min(min_pt[j], point[j]);
-                       max_pt[j] = std::max(min_pt[j], point[j]);
+                       max_pt[j] = std::max(max_pt[j], point[j]);
                }
        }