Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef KEKALUDA_H_INCLUDED
- #define KEKALUDA_H_INCLUDED
- #define MAX_NAME_LENGTH 100
- #define MAX_LINE_LENGTH 200
- enum Ending_e {
- OPEN, //offene Kurve
- CLOSED //geschlossene Kurve
- };
- struct Point_s {
- double x_coord;
- double y_coord;
- };
- typedef struct Point_s Point_t;
- struct Trajectory_s {
- char name [MAX_NAME_LENGTH]; //IME KRIVE
- struct Point_s points[MAX_LINE_LENGTH]; //POLJE SA TACKAMA
- enum Ending_e ending; //Vrsta krive
- long pointCount, maxPoints; //Broj tacaka
- //Maksimalan broj tacaka
- };
- typedef struct Trajectory_s Trajectory_t;
- Point_t createPoint (double x, double y);
- void createPolygonline(Trajectory_t *line, long pointCount);
- void generateTable(Trajectory_t *line);
- double calculateHeight(Trajectory_t *line);
- double distanceEuklid(Point_t pkt1, Point_t pkt2);
- long roundVal(double d);
- void plotPolygon(Trajectory_t *line, long Nx, long Ny);
- long saveLine(Trajectory_t *line);
- Trajectory_t loadLine(char *filename);
- #endif // KEKALUDA_H_INCLUDED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement