Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef _FIGURA_H_
- #define _FIGURA_H_
- enum FIG_TYPES
- {
- TRIANGLE, SQUARE, CIRCLE
- }; ///Triangle - AB is parallel to OX. Square - AB is parallel to OX
- typedef struct figura
- {
- float xA, yA;
- float xB, yB;
- float xC, yC;
- float xD, yD;
- int typfig;
- }Figura;
- float pole(Figura *f);
- void przesun(Figura *f, float x, float y);
- float sumapol(Figura **f, int size);
- Figura* stworzKwadrat(float xA, float yA, float bok);
- Figura* stworzTrojkat(float xA, float yA, float xB, float xC, float yC);
- Figura* stworzKolo(float xA, float yA, float r);
- void zniszczFigure(Figura* f);
- #endif // _FIGURA_H_
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement