Advertisement
iggnaccy

figura.h

Mar 1st, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. #ifndef _FIGURA_H_
  2. #define _FIGURA_H_
  3.  
  4. enum FIG_TYPES
  5. {
  6. TRIANGLE, SQUARE, CIRCLE
  7. }; ///Triangle - AB is parallel to OX. Square - AB is parallel to OX
  8.  
  9. typedef struct figura
  10. {
  11. float xA, yA;
  12. float xB, yB;
  13. float xC, yC;
  14. float xD, yD;
  15. int typfig;
  16. }Figura;
  17.  
  18. float pole(Figura *f);
  19. void przesun(Figura *f, float x, float y);
  20. float sumapol(Figura **f, int size);
  21. Figura* stworzKwadrat(float xA, float yA, float bok);
  22. Figura* stworzTrojkat(float xA, float yA, float xB, float xC, float yC);
  23. Figura* stworzKolo(float xA, float yA, float r);
  24. void zniszczFigure(Figura* f);
  25.  
  26. #endif // _FIGURA_H_
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement