Namespaces | Typedefs | Functions

fit.cpp File Reference

#include "fit.h"
#include <math.h>
#include "perf/perf.h"
Include dependency graph for fit.cpp:

Go to the source code of this file.

Namespaces

namespace  bezier

Typedefs

typedef std::vector< point_tbezier::vec_point_t

Functions

static point_t bezier::getTangent (const point_t *p, int nPoints, int i) throw ()
void bezier::getQuadPathFromRawPoints (const point_t *p,int nPoints,float ds,quad_path_t &path)
 given a set of points, return the best fit path of quadratic beziers
void bezier::getCubicPathFromRawPoints (const point_t *in_p, int nPoints, float ds, cubic_path_t &path)
static void bezier::getCubic (float x1, float x2, float x3, float &a, float &b, float &c) throw ()
static void bezier::leastSquaresFit (const point_t *p, int nPoints, const point_t &q, const point_t &r, control_points_t &cp) throw ()
static void bezier::getQR (const point_t *p, int nPoints, point_t &q, point_t &r) throw ()
void bezier::addPathSegments (const point_t *p, const point_t &q, const point_t &r, int nPoints, float tolerance, path_t &path)
void bezier::fitPoints (const float *x, int nPoints, float slope, fit_t &fit) throw ()
int bezier::getCuspIndices (const point_t *p, int nPoints, int **cusps)
float bezier::getFitQuality (const point_t *p, int nPoints, const curve_t &curve) throw ()
void bezier::fitPath (const point_t *p, int nPoints, float tolerance, path_t &path)
void bezier::respacePath (const point_t *p, int nPoints, float dt, point_t **out_p, int &newPoints)