summaryrefslogtreecommitdiff
path: root/app/cornu/spiro.h
blob: 1bcca37f97b99d06c8f632d1902e39dc17f98b75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef _SPIRO_H
#define _SPIRO_H
#include "bezctx_intf.h"
typedef struct {
    double x;
    double y;
    char ty;
} spiro_cp;

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