PolyRectangle.h 476 B

1234567891011121314151617181920212223242526
  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 "PolyGlobals.h"
  12. namespace Polycode {
  13. class _PolyExport Rectangle {
  14. public:
  15. Rectangle(){x=0;y=0;w=0;h=0;}
  16. Rectangle(float px, float py, float pw, float ph){x=px;y=py;w=pw;h=ph;}
  17. void setRect(float x, float y, float w, float h);
  18. float x;
  19. float y;
  20. float w;
  21. float h;
  22. };
  23. }