als;djfpoafb hnw3jg
Dependencies: MatrixMath Matrix ExperimentServer QEI_pmw MotorShield
BezierCurve.h@7:b539135656cb, 2021-12-01 (annotated)
- Committer:
- lschwend
- Date:
- Wed Dec 01 23:14:47 2021 +0000
- Revision:
- 7:b539135656cb
- Parent:
- 1:25284247a74c
-changed signs to make the legs work;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sabazerefa | 1:25284247a74c | 1 | class BezierCurve |
sabazerefa | 1:25284247a74c | 2 | { |
sabazerefa | 1:25284247a74c | 3 | public: |
sabazerefa | 1:25284247a74c | 4 | BezierCurve(int dim, int order); |
sabazerefa | 1:25284247a74c | 5 | ~BezierCurve(); |
sabazerefa | 1:25284247a74c | 6 | void setPoints(float pts[]); |
sabazerefa | 1:25284247a74c | 7 | void evaluate(float time, float point[]); |
sabazerefa | 1:25284247a74c | 8 | void evaluateDerivative(float time, float point[]); |
sabazerefa | 1:25284247a74c | 9 | private: |
sabazerefa | 1:25284247a74c | 10 | const int _dim; |
sabazerefa | 1:25284247a74c | 11 | const int _order; |
sabazerefa | 1:25284247a74c | 12 | float ** _pts; |
sabazerefa | 1:25284247a74c | 13 | int * _nck; |
sabazerefa | 1:25284247a74c | 14 | int * _nck_deriv; |
sabazerefa | 1:25284247a74c | 15 | }; |