
final
Dependencies: MatrixMath Matrix ExperimentServer QEI_pmw MotorShield
BezierCurve.h@19:562c08086d71, 2020-09-25 (annotated)
- Committer:
- saloutos
- Date:
- Fri Sep 25 21:57:02 2020 +0000
- Revision:
- 19:562c08086d71
- Parent:
- 16:f9ea2b2d410f
Skeleton example code
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
saloutos | 16:f9ea2b2d410f | 1 | class BezierCurve |
saloutos | 16:f9ea2b2d410f | 2 | { |
saloutos | 16:f9ea2b2d410f | 3 | public: |
saloutos | 16:f9ea2b2d410f | 4 | BezierCurve(int dim, int order); |
saloutos | 16:f9ea2b2d410f | 5 | ~BezierCurve(); |
saloutos | 16:f9ea2b2d410f | 6 | void setPoints(float pts[]); |
saloutos | 16:f9ea2b2d410f | 7 | void evaluate(float time, float point[]); |
saloutos | 16:f9ea2b2d410f | 8 | void evaluateDerivative(float time, float point[]); |
saloutos | 16:f9ea2b2d410f | 9 | private: |
saloutos | 16:f9ea2b2d410f | 10 | const int _dim; |
saloutos | 16:f9ea2b2d410f | 11 | const int _order; |
saloutos | 16:f9ea2b2d410f | 12 | float ** _pts; |
saloutos | 16:f9ea2b2d410f | 13 | int * _nck; |
saloutos | 16:f9ea2b2d410f | 14 | int * _nck_deriv; |
saloutos | 16:f9ea2b2d410f | 15 | }; |