blob: 6c6c8a75b406c9a3f300b5ddb6cc0bf4f3ffb1fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#ifndef GRAGL_H
#define GRAGL_H
typedef struct {
double x;
double y;
} Point2d;
typedef struct {
double v;
char valid;
} Scalar;
typedef struct {
unsigned width;
unsigned height;
Scalar (*func)(double);
unsigned n_func;
double from;
double to;
double step;
} Plot2d;
typedef struct {
Plot2d * plots;
unsigned n;
unsigned padding;
} Plot2dGroup;
Plot2dGroup * create_plot2d_group(int num_args, ...);
void free_plot2d_group(Plot2dGroup *);
void plot(Plot2dGroup *);
#endif
|