/usr/include/spiro.h is in libspiro-dev 1:0.5.20150702-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 35 36 37 | #ifndef _SPIRO_H
#define _SPIRO_H
typedef struct {
/* User passes an array of SpiroCP in this format for Spiro to solve */
double x; /* Spiro CodePoint Xloc */
double y; /* Spiro CodePoint Yloc */
char ty; /* Spiro CodePoint Type */
} spiro_cp;
struct spiro_seg_s {
/* run_spiro() uses array of information given in the structure above and */
/* creates an array in this structure format to use by spiro_to_bpath for */
/* building bezier curves */
double x; /* SpiroCP segment_chord startX */
double y; /* SpiroCP segment_chord startY */
char ty; /* Spiro CodePoint Type */
double bend_th; /* bend theta between this vector and next vector */
double ks[4];
double seg_ch; /* segment_chord distance from xy to next SpiroCP */
double seg_th; /* segment_theta angle for this SpiroCP */
double l;
};
typedef struct spiro_seg_s spiro_seg;
spiro_seg *
run_spiro(const spiro_cp *src, int n);
void
free_spiro(spiro_seg *s);
void
spiro_to_bpath(const spiro_seg *s, int n, bezctx *bc);
double get_knot_th(const spiro_seg *s, int i);
#endif
|