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.

BoundingBox.h 257B

1234567891011121314151617
  1. #pragma once
  2. #include "Vector2.h"
  3. namespace Swan {
  4. struct BoundingBox {
  5. Vec2 pos;
  6. Vec2 size;
  7. double left() { return pos.x; }
  8. double right() { return pos.x + size.x; }
  9. double top() { return pos.y; }
  10. double bottom() { return pos.y + size.y; }
  11. };
  12. }