diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2023-02-25 00:53:04 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-02-25 00:53:04 +0100 |
| commit | 42305cd3b9942ba07fbae85a855ad23f1ad044a2 (patch) | |
| tree | 33deeab772f64612fc0217a4ad57cc8493625af1 /test/bbox.cpp | |
| parent | da0e08d717d774c9f1b5fc3509e2f837d3b4701f (diff) | |
kill lqt
Diffstat (limited to 'test/bbox.cpp')
| -rw-r--r-- | test/bbox.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/test/bbox.cpp b/test/bbox.cpp deleted file mode 100644 index 9ffd6122..00000000 --- a/test/bbox.cpp +++ /dev/null @@ -1,25 +0,0 @@ -#include "app.hpp" -#include "src/chunk.hpp" -#include "src/collision.hpp" -#include <Magnum/Math/Vector2.h> -#include <Magnum/Math/Vector4.h> - -namespace floormat { - -void test_app::test_bbox() -{ - auto c = make_test_chunk(); - - constexpr auto pos1 = sTILE_SIZE2 * (TILE_MAX_DIM/2) - Vector2s(0, sTILE_SIZE2[1]/2); - constexpr auto b1 = Vector4s{pos1[0], pos1[1], sTILE_SIZE2[0], sTILE_SIZE2[1]}; - constexpr auto pos2 = Vector2s(iTILE_SIZE2 * (Vector2i(TILE_MAX_DIM/2) - Vector2i(-1, -1)) - Vector2i(0, iTILE_SIZE[1]/2)); - constexpr auto b2 = Vector4s{pos2[0], pos2[1], usTILE_SIZE2[0], usTILE_SIZE2[1]}; - { - auto q1 = c.query_collisions(b1, collision::move); - fm_assert(q1); - auto q2 = c.query_collisions(b2, collision::move); - fm_assert(!q2); - } -} - -} // namespace floormat |
