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

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,
|  | b |  | ) | (((a)<(b))?(a):(b))

Definition at line 46 of file _bezier.h.

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

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

Definition at line 51 of file _bezier.h.

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

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

Definition at line 54 of file _bezier.h.

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

#define DEGREE 3

Definition at line 56 of file _bezier.h.

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

#define W_DEGREE 5

Definition at line 57 of file _bezier.h.

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