ETL  0.04.19
Classes | Macros
_bezier.h File Reference
#include "_curve_func.h"
#include <cmath>

Go to the source code of this file.

Classes

class  bezier_base< V, T >
 Cubic Bezier Curve Base Class. More...
class  bezier_base< float, float >
class  bezier_base< double, float >
class  bezier_iterator< V, T >
struct  bezier_iterator< V, T >::iterator_category
class  bezier< V, T >

Macros

#define MAXDEPTH   64 /* Maximum depth for recursion */
#define SGN(a)   (((a)<0) ? -1 : 1)
#define MIN(a, b)   (((a)<(b))?(a):(b))
#define MAX(a, b)   (((a)>(b))?(a):(b))
#define BEZIER_EPSILON   (ldexp(1.0,-MAXDEPTH-1)) /*Flatness control value */
#define DEGREE   3 /* Cubic Bezier curve */
#define W_DEGREE   5 /* Degree of eqn to find roots of */

Macro Definition Documentation

#define MAXDEPTH   64 /* Maximum depth for recursion */

======================================================================== Extended Template Library Bezier Template Class Implementation $Id$

Copyright (c) 2002 Robert B. Quattlebaum Jr. Copyright (c) 2007 Chris Moore

This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

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

This is an internal header file, included by other ETL headers. You should not attempt to use it directly.


Definition at line 39 of file _bezier.h.

Referenced by bezier< T, float >::FindRoots().

#define SGN (   a)    (((a)<0) ? -1 : 1)

Definition at line 42 of file _bezier.h.

Referenced by bezier< T, float >::CrossingCount().

#define MIN (   a,
 
)    (((a)<(b))?(a):(b))
#define MAX (   a,
 
)    (((a)>(b))?(a):(b))
#define BEZIER_EPSILON   (ldexp(1.0,-MAXDEPTH-1)) /*Flatness control value */

Definition at line 54 of file _bezier.h.

Referenced by bezier< T, float >::ControlPolygonFlatEnough().

#define DEGREE   3 /* Cubic Bezier curve */
#define W_DEGREE   5 /* Degree of eqn to find roots of */