|
CoreComponents 3.0.0
A Modern C++ Toolkit
|
Cubic Bezier curve. More...
#include <Easing>
Public Member Functions | |
| Bezier (const Point &a, const Point &b) | |
| Create a cubic Bezier curve starting at {0, 0} and ending at {1, 1} with control points a and b. | |
| Bezier (double xa, double ya, double xb, double yb) | |
| Create a cubic Bezier curve starting at {0, 0} and ending at {1, 1} with control points (xa, ya) and (xb, yb) | |
| Point | a () const |
| First control point. | |
| Point | b () const |
| Second control point. | |
| double | operator() (double t) const |
| Evaluate. | |
Cubic Bezier curve.
Create a cubic Bezier curve starting at {0, 0} and ending at {1, 1} with control points a and b.
| Bezier | ( | double | xa, |
| double | ya, | ||
| double | xb, | ||
| double | yb ) |
Create a cubic Bezier curve starting at {0, 0} and ending at {1, 1} with control points (xa, ya) and (xb, yb)
| Point a | ( | ) | const |
First control point.
| Point b | ( | ) | const |
Second control point.
| double operator() | ( | double | t | ) | const |
Evaluate.