synfig-core  1.0.3

Implementation of the "Curve Gradient" layer. More...

`#include "curvegradient.h"`
`#include <synfig/string.h>`
`#include <synfig/time.h>`
`#include <synfig/context.h>`
`#include <synfig/paramdesc.h>`
`#include <synfig/renddesc.h>`
`#include <synfig/surface.h>`
`#include <synfig/value.h>`
`#include <synfig/valuenode.h>`
`#include <synfig/cairo_renddesc.h>`
`#include <ETL/bezier>`
`#include <ETL/hermite>`
`#include <ETL/calculus>`

## Macros

#define FAKE_TANGENT_STEP   0.000001
#define POINT_CHECK(x)   bp=curve(x); thisdist=(bp-p).mag_squared(); if(thisdist<dist) { ret=iter; dist=thisdist; best_bline_dist=total_bline_dist; /* best_bline_len=len; */ best_curve=curve; }

## Functions

float calculate_distance (const synfig::BLinePoint &a, const synfig::BLinePoint &b)
float calculate_distance (const std::vector< synfig::BLinePoint > &bline, bool bline_loop)
std::vector
< synfig::BLinePoint >
::const_iterator
find_closest (bool fast, const std::vector< synfig::BLinePoint > &bline, const Point &p, float &t, bool loop=false, float *bline_dist_ret=0)

## Detailed Description

Implementation of the "Curve Gradient" layer.

\$Id\$

=== N O T E S ===========================================================

## Macro Definition Documentation

 #define FAKE_TANGENT_STEP   0.000001
 #define POINT_CHECK ( x ) bp=curve(x); thisdist=(bp-p).mag_squared(); if(thisdist

## Function Documentation

 std::vector::const_iterator find_closest ( bool fast, const std::vector< synfig::BLinePoint > & bline, const Point & p, float & t, bool loop = `false`, float * bline_dist_ret = `0` )