You.i Engine
YiInterpolateBezier.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2020. All rights reserved.
2 #ifndef _YI_INTERPOLATE_BEZIER_H_
3 #define _YI_INTERPOLATE_BEZIER_H_
4 
5 #include "YiTimeInterpolator.h"
6 
20 {
21 public:
23  CYIInterpolateBezier(float c0, float c1, float c2, float c3, float scale);
24  virtual ~CYIInterpolateBezier();
25 
26  void SetParameters(float c0, float c1, float c2, float c3, float scale);
27  virtual float Interpolate(float timePercentage) override;
28 
29 private:
30  float m_a;
31  float m_b;
32  float m_c;
33  float m_d;
34  float m_scale;
35 
37 };
38 
41 #endif // _YI_INTERPOLATE_BEZIER_H_
virtual float Interpolate(float timePercentage) override
Container for basic interpolator functions.
Definition: YiTimeInterpolator.h:20
void SetParameters(float c0, float c1, float c2, float c3, float scale)
virtual ~CYIInterpolateBezier()
#define YI_TYPE_BASES(CLASS, BASES...)
Definition: YiRtti.h:257
An interpolator that follows a bezier curve.
Definition: YiInterpolateBezier.h:19