diff options
Diffstat (limited to 'src/hole.hpp')
-rw-r--r-- | src/hole.hpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/hole.hpp b/src/hole.hpp index 384a5044..5e993072 100644 --- a/src/hole.hpp +++ b/src/hole.hpp @@ -56,17 +56,18 @@ private: }; template<typename T> -struct cut_rectangle_result // todo rename +struct CutResult { using Vec2 = VectorTypeFor<2, T>; struct bbox { Vec2 position; Vector2ub bbox_size; }; struct rect { Vec2 min, max; }; - static cut_rectangle_result cut(bbox input, bbox hole); - static cut_rectangle_result cut(Vec2 r0, Vec2 r1, Vec2 h0, Vec2 h1); + static CutResult cut(bbox input, bbox hole); + static CutResult cut(Vec2 r0, Vec2 r1, Vec2 h0, Vec2 h1); - uint8_t size = 0; std::array<rect, 8> array; + uint8_t size = 0; + bool found = false; }; } // namespace floormat |