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_t > bezier::vec_point_t

Functions

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