CIDFonts: look for external replacement.
[swftools.git] / pdf2swf / spline.h
1 /* spline.h
2    Header file for spline.cc
3
4    Part of the swftools package.
5
6    Copyright (c) 2001 Matthias Kramm <kramm@quiss.org> 
7
8    This file is distributed under the GPL, see file COPYING for details */
9
10 #ifndef __spline_h__
11 #define __spline_h__
12
13 struct plotxy
14 {
15     double x,y;
16 };
17
18 struct qspline
19 {
20     struct plotxy start;
21     struct plotxy control;
22     struct plotxy end;
23 };
24
25 struct cspline
26 {
27     struct plotxy start;
28     struct plotxy control1;
29     struct plotxy control2;
30     struct plotxy end;
31 };
32
33 int approximate(struct plotxy p0, struct plotxy p1,
34                 struct plotxy p2, struct plotxy p3, struct qspline*q);
35
36 #endif// __spline_h__