Fix bbox(vecr::mirror)
This commit is contained in:
parent
698bd2a60b
commit
168cca63e3
1 changed files with 2 additions and 2 deletions
|
|
@ -38,10 +38,10 @@ namespace psemek::vecr
|
||||||
template <typename Shape>
|
template <typename Shape>
|
||||||
geom::box<float, 2> bbox(mirror<Shape> const & s)
|
geom::box<float, 2> bbox(mirror<Shape> const & s)
|
||||||
{
|
{
|
||||||
geom::box<float, 2> result;
|
|
||||||
|
|
||||||
auto sbox = bbox(s.shape);
|
auto sbox = bbox(s.shape);
|
||||||
|
|
||||||
|
geom::box<float, 2> result = sbox;
|
||||||
|
|
||||||
for (int x = 0; x <= 1; ++x)
|
for (int x = 0; x <= 1; ++x)
|
||||||
{
|
{
|
||||||
for (int y = 0; y <= 1; ++y)
|
for (int y = 0; y <= 1; ++y)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue