_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 >

Defines

#define MAXDEPTH   64
#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))
#define DEGREE   3
#define W_DEGREE   5


Define Documentation

#define MAXDEPTH   64

======================================================================== Extended Template Library Bezier Template Class Implementation

Id
_bezier.h 874 2007-10-10 02:12:32Z dooglus

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< V, T >::FindRoots().

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

Definition at line 42 of file _bezier.h.

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

#define MIN ( a,
 )     (((a)<(b))?(a):(b))

Definition at line 46 of file _bezier.h.

Referenced by bezier< V, T >::ControlPolygonFlatEnough(), and bezier< V, T >::ConvertToBezierForm().

#define MAX ( a,
 )     (((a)>(b))?(a):(b))

Definition at line 51 of file _bezier.h.

Referenced by bezier< V, T >::ControlPolygonFlatEnough(), and bezier< V, T >::ConvertToBezierForm().

#define BEZIER_EPSILON   (ldexp(1.0,-MAXDEPTH-1))

Definition at line 54 of file _bezier.h.

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

#define DEGREE   3

Definition at line 56 of file _bezier.h.

Referenced by bezier< V, T >::ConvertToBezierForm(), and bezier< V, T >::NearestPointOnCurve().

#define W_DEGREE   5

Definition at line 57 of file _bezier.h.

Referenced by bezier< V, T >::Bezier(), bezier< V, T >::ComputeXIntercept(), bezier< V, T >::ControlPolygonFlatEnough(), bezier< V, T >::ConvertToBezierForm(), bezier< V, T >::CrossingCount(), bezier< V, T >::FindRoots(), and bezier< V, T >::NearestPointOnCurve().


Generated on Sat Oct 27 16:08:13 2007 for ETL by  doxygen 1.5.3-20071008