~ubuntu-branches/ubuntu/maverick/scribus-ng/maverick-backports

« back to all changes in this revision

Viewing changes to scribus/plugins/tools/2geomtools/lib2geom/solver.h

  • Committer: Bazaar Package Importer
  • Author(s): Oleksandr Moskalenko
  • Date: 2009-02-09 09:25:18 UTC
  • mfrom: (5.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090209092518-iqsxmh3pjspgrdyd
Tags: 1.3.5.dfsg~svn20090208-2
debian/control: Use "type-handling -n arm,armel,armeb any" to generate the
list of architectures to build on.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _SOLVE_SBASIS_H
 
2
#define _SOLVE_SBASIS_H
 
3
#include "point.h"
 
4
#include "sbasis.h"
 
5
 
 
6
namespace Geom{
 
7
 
 
8
        class Point;
 
9
 
 
10
unsigned
 
11
crossing_count(Geom::Point const *V,    /*  Control pts of Bezier curve */
 
12
               unsigned degree);        /*  Degree of Bezier curve */
 
13
void
 
14
find_parametric_bezier_roots(
 
15
    Geom::Point const *w, /* The control points  */
 
16
    unsigned degree,    /* The degree of the polynomial */
 
17
    std::vector<double> & solutions,    /* RETURN candidate t-values */
 
18
    unsigned depth);    /* The depth of the recursion */
 
19
 
 
20
unsigned
 
21
crossing_count(double const *V, /*  Control pts of Bezier curve */
 
22
               unsigned degree, /*  Degree of Bezier curve */
 
23
               double left_t, double right_t);
 
24
void
 
25
find_bernstein_roots(
 
26
    double const *w, /* The control points  */
 
27
    unsigned degree,    /* The degree of the polynomial */
 
28
    std::vector<double> & solutions,    /* RETURN candidate t-values */
 
29
    unsigned depth,     /* The depth of the recursion */
 
30
    double left_t=0, double right_t=1);
 
31
 
 
32
};
 
33
#endif