|
CoreComponents 3.0.0
A Modern C++ Toolkit
|
Cubic berzier curves. More...
#include <cc\CubicBezier>
Public Member Functions | |
| CubicBezier (Point a, Point b, Point c, Point d) | |
| Create a cubic bezier curve. | |
| Point | operator() (double t) const |
| Compute the parametric curve at relative distance t. | |
| double | length (long steps=20) const |
| Estimate the length of the curve. | |
Cubic berzier curves.
| CubicBezier | ( | Point | a, |
| Point | b, | ||
| Point | c, | ||
| Point | d ) |
Create a cubic bezier curve.
| a | Starting point |
| b | First control point |
| c | Second control point |
| d | End point |
| Point operator() | ( | double | t | ) | const |
Compute the parametric curve at relative distance t.
| double length | ( | long | steps = 20 | ) | const |
Estimate the length of the curve.
| steps | umber of line segments to use in the quadrature of the curve |