BezierCurve< N > Class Template Reference
Represents an nth degree bezier curve.
More...
#include <Graphics/Curve.h>
List of all members.
Detailed Description
template<uint N = 3>
class BezierCurve< N >
Represents an nth degree bezier curve.
- Template Parameters:
-
| n | the degree of the bezier curve. |
Member Function Documentation
template<uint N>
void BezierCurve< N >::Draw |
( |
const Color4f & |
color = Color::White , |
|
|
float |
width = 2.0f | |
|
) |
| | [inline] |
Draws the curve.
- Parameters:
-
[in] | color | the color to draw the curve. Defaults to white. |
[in] | width | the width of the curve. Defaults to 2. |
Gets the ith control point of the curve.
- Parameters:
-
[in] | i | the index, must be in the range [0, N] |
- Returns:
- the ith control point.
Sets the ith control point of the curve.
- Parameters:
-
[in] | i | the index, must be in the range [0, N] |
[in] | p | the control point. |
Sets the detail level that will be used to draw the curve.
- Parameters:
-
[in] | detail | higher values produce smoother curves but are slower to compute. |
The documentation for this class was generated from the following file: