2
0

PolyRectangle.h 500 B

123456789101112131415161718192021222324252627
  1. /*
  2. * PolyRectangle.h
  3. * Poly
  4. *
  5. * Created by Ivan Safrin on 8/7/08.
  6. * Copyright 2008 __MyCompanyName__. All rights reserved.
  7. *
  8. */
  9. // @package Math
  10. #pragma once
  11. #include "PolyString.h"
  12. #include "PolyGlobals.h"
  13. namespace Polycode {
  14. class _PolyExport Rectangle {
  15. public:
  16. Rectangle(){x=0;y=0;w=0;h=0;}
  17. Rectangle(float px, float py, float pw, float ph){x=px;y=py;w=pw;h=ph;}
  18. void setRect(float x, float y, float w, float h);
  19. float x;
  20. float y;
  21. float w;
  22. float h;
  23. };
  24. }