PolySpline.h 356 B

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. #include "Common.h"
  3. #include "Point.h"
  4. #include <vector>
  5. NS_BF_BEGIN;
  6. class PolySpline2D
  7. {
  8. public:
  9. std::vector<PointF> mInputPoints;
  10. public:
  11. float* mCoefs;
  12. public:
  13. PolySpline2D();
  14. ~PolySpline2D();
  15. void AddPt(float x, float y);
  16. int GetLength();
  17. void Calculate();
  18. float Evaluate(float x);
  19. };
  20. NS_BF_END;