|
Core 1.0
|
Bézier curves. More...
#include <bezier.h>
Public Member Functions | |
| BezierCurve () | |
| Empty. | |
| BezierCurve (const QVector< Vector > &) | |
| Create a Bézier curve. | |
| ~BezierCurve () | |
| Empty. | |
| int | Degree () const |
| Return the degree of the curve. | |
| Vector | Vertex (int) const |
| Return the control point. | |
| Vector | Point (const double &) const |
| Compute a point on the curve. | |
| Vector | Tangent (const double &) const |
| Compute the tangent at a given point on the curve. | |
| Vector | Second (const double &) const |
| Compute the secondary derivative a given point on the curve. | |
| Vector | DeCasteljau (const double &) const |
| Compute a point on the curve using De Casteljau's algorithm. | |
| Box | GetBox () const |
| Return the bounding box. | |
| void | Rotate (const Matrix &) |
| Rotates a patch. | |
| void | Translate (const Vector &) |
| Translation. | |
| void | Scale (const Vector &) |
| Scale. | |
| void | Transform (const Frame &) |
| Transforms the curve. | |
Protected Attributes | |
| QVector< Vector > | c |
| Control points. | |
Bézier curves.
|
explicit |
Create a Bézier curve.
| c | Set of control points. |
| Vector BezierCurve::DeCasteljau | ( | const double & | u | ) | const |
Compute a point on the curve using De Casteljau's algorithm.
| u | Coordinates. |
| Vector BezierCurve::Point | ( | const double & | u | ) | const |
Compute a point on the curve.
| u | Coordinates. |
| void BezierCurve::Rotate | ( | const Matrix & | r | ) |
Rotates a patch.
| r | Rotation matrix. |
| void BezierCurve::Scale | ( | const Vector & | s | ) |
Scale.
| s | Scaling vector. |
| Vector BezierCurve::Second | ( | const double & | u | ) | const |
Compute the secondary derivative a given point on the curve.
| u | Coordinates. |
| Vector BezierCurve::Tangent | ( | const double & | u | ) | const |
Compute the tangent at a given point on the curve.
| u | Coordinates. |
| void BezierCurve::Transform | ( | const Frame & | frame | ) |
Transforms the curve.
| frame | Transformation. |
| void BezierCurve::Translate | ( | const Vector & | t | ) |
Translation.
| t | Translation vector. |
|
inline |
Return the control point.
| i | Index. |