Fix bbox(vecr::mirror)

This commit is contained in:
Nikita Lisitsa 2023-06-21 13:16:55 +03:00
parent 698bd2a60b
commit 168cca63e3

View file

@ -38,10 +38,10 @@ namespace psemek::vecr
template <typename Shape>
geom::box<float, 2> bbox(mirror<Shape> const & s)
{
geom::box<float, 2> result;
auto sbox = bbox(s.shape);
geom::box<float, 2> result = sbox;
for (int x = 0; x <= 1; ++x)
{
for (int y = 0; y <= 1; ++y)