Namespaces | Defines | Functions | Variables

bezier.cpp File Reference

#include "bezier.h"
#include <sstream>
#include <math.h>
#include <stdio.h>
#include "common/wave_ex.h"
#include "perf/perf.h"
#include "util/token_stream.h"
Include dependency graph for bezier.cpp:

Go to the source code of this file.

Namespaces

namespace  bezier

Defines

#define READ_COMPONENT(x)

Functions

static int bezier::findRoots (IN float a, IN float b, IN float c, OUT float *roots) throw ()
static void bezier::checkBoundaries (IO float &min, IO float &max, IN float value) throw ()
void bezier::getRect (IN const curve_t &curve, OUT rect_t &rect) throw ()
void bezier::scale (IO curve_t &curve, IN float factor) throw ()
static float bezier::writeVal (IN float x, IN float eps) throw ()
void bezier::write (IN const curve_t &curve, OUT std::string &value, IN float eps) throw ()
void bezier::read (IN const char *value, OUT curve_t &curve)
void bezier::getCurveFromControlPoints (IN const control_points_t &cp, OUT curve_t &b) throw ()
void bezier::getControlPointsFromCurve (IN const curve_t &b, OUT control_points_t &cp) throw ()

Variables

static const float bezier::s_eps = 1.0e-8

Define Documentation

#define READ_COMPONENT (   x  ) 
Value:
if (!*p) {                                              \
                WAVE_EX(wex);                                   \
                wex << "Could not read bezier component" << #x ; \
        }                                                       \
        curve.x = atof(p);                                      \
        while (*p && !isspace(*p)) { ++p; }                     \
        while (*p && isspace(*p)) { ++p; }

Definition at line 259 of file bezier.cpp.