A 2D tile-based sandbox game.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1234567891011121314151617 |
- #pragma once
-
- #include "Vector2.h"
-
- namespace Swan {
-
- struct BoundingBox {
- Vec2 pos;
- Vec2 size;
-
- double left() { return pos.x; }
- double right() { return pos.x + size.x; }
- double top() { return pos.y; }
- double bottom() { return pos.y + size.y; }
- };
-
- }
|