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 (float a, float b, float c, float *roots) throw ()
static void bezier::checkBoundaries (float &min, float &max, float value) throw ()
void bezier::getRect (const curve_t &curve, rect_t &rect) throw ()
void bezier::scale (curve_t &curve, float factor) throw ()
static float bezier::writeVal (float x, float eps) throw ()
void bezier::write (const curve_t &curve, std::string &value, float eps) throw ()
void bezier::read (const char *value, curve_t &curve)
void bezier::getCurveFromControlPoints (const control_points_t &cp, curve_t &b) throw ()
void bezier::getControlPointsFromCurve (const curve_t &b, 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.